diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-04-05 14:08:31 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-04-11 07:46:53 +0000 |
commit | 6a4cabb866f66d4128a97cdc6d9d08ce074f1247 (patch) | |
tree | ab00f70a5e89278d6a0d16ff0c42578dc4d84a2d /chromium/chrome/browser/extensions/api/extension_action | |
parent | e733310db58160074f574c429d48f8308c0afe17 (diff) |
BASELINE: Update Chromium to 57.0.2987.144
Change-Id: I29db402ff696c71a04c4dbaec822c2e53efe0267
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'chromium/chrome/browser/extensions/api/extension_action')
-rw-r--r-- | chromium/chrome/browser/extensions/api/extension_action/extension_action_api.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chromium/chrome/browser/extensions/api/extension_action/extension_action_api.cc b/chromium/chrome/browser/extensions/api/extension_action/extension_action_api.cc index 91555cbfd61..8556defb020 100644 --- a/chromium/chrome/browser/extensions/api/extension_action/extension_action_api.cc +++ b/chromium/chrome/browser/extensions/api/extension_action/extension_action_api.cc @@ -372,21 +372,21 @@ bool ExtensionActionFunction::ExtractDataFromArguments() { return true; switch (first_arg->GetType()) { - case base::Value::TYPE_INTEGER: + case base::Value::Type::INTEGER: CHECK(first_arg->GetAsInteger(&tab_id_)); break; - case base::Value::TYPE_DICTIONARY: { + case base::Value::Type::DICTIONARY: { // Found the details argument. details_ = static_cast<base::DictionaryValue*>(first_arg); // Still need to check for the tabId within details. base::Value* tab_id_value = NULL; if (details_->Get("tabId", &tab_id_value)) { switch (tab_id_value->GetType()) { - case base::Value::TYPE_NULL: + case base::Value::Type::NONE: // OK; tabId is optional, leave it default. return true; - case base::Value::TYPE_INTEGER: + case base::Value::Type::INTEGER: CHECK(tab_id_value->GetAsInteger(&tab_id_)); return true; default: @@ -398,7 +398,7 @@ bool ExtensionActionFunction::ExtractDataFromArguments() { break; } - case base::Value::TYPE_NULL: + case base::Value::Type::NONE: // The tabId might be an optional argument. break; @@ -502,7 +502,7 @@ ExtensionActionSetBadgeBackgroundColorFunction::RunExtensionAction() { base::Value* color_value = NULL; EXTENSION_FUNCTION_VALIDATE(details_->Get("color", &color_value)); SkColor color = 0; - if (color_value->IsType(base::Value::TYPE_LIST)) { + if (color_value->IsType(base::Value::Type::LIST)) { base::ListValue* list = NULL; EXTENSION_FUNCTION_VALIDATE(details_->GetList("color", &list)); EXTENSION_FUNCTION_VALIDATE(list->GetSize() == 4); @@ -514,7 +514,7 @@ ExtensionActionSetBadgeBackgroundColorFunction::RunExtensionAction() { color = SkColorSetARGB(color_array[3], color_array[0], color_array[1], color_array[2]); - } else if (color_value->IsType(base::Value::TYPE_STRING)) { + } else if (color_value->IsType(base::Value::Type::STRING)) { std::string color_string; EXTENSION_FUNCTION_VALIDATE(details_->GetString("color", &color_string)); if (!image_util::ParseCssColorString(color_string, &color)) |