diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 22:34:41 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 22:34:41 +0000 |
commit | aeca23fd8d2a00723b2cb9791054f5ff11034004 (patch) | |
tree | c360d46857a7c634460e99d2e90cec7017126843 /chrome/browser/extensions/convert_user_script.cc | |
parent | 5e4c87570711035dd18092ecbfcd47bf4f2d1e6c (diff) | |
download | chromium_src-aeca23fd8d2a00723b2cb9791054f5ff11034004.zip chromium_src-aeca23fd8d2a00723b2cb9791054f5ff11034004.tar.gz chromium_src-aeca23fd8d2a00723b2cb9791054f5ff11034004.tar.bz2 |
Convert most of extensions and some other random stuff to using the base namespace for Values.
R=finnur@chromium.org
Review URL: https://codereview.chromium.org/16915006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207937 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/convert_user_script.cc')
-rw-r--r-- | chrome/browser/extensions/convert_user_script.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/extensions/convert_user_script.cc b/chrome/browser/extensions/convert_user_script.cc index 752e6a3..e823819 100644 --- a/chrome/browser/extensions/convert_user_script.cc +++ b/chrome/browser/extensions/convert_user_script.cc @@ -101,12 +101,12 @@ scoped_refptr<Extension> ConvertUserScriptToExtension( root->SetString(keys::kPublicKey, key); root->SetBoolean(keys::kConvertedFromUserScript, true); - ListValue* js_files = new ListValue(); + base::ListValue* js_files = new base::ListValue(); js_files->Append(Value::CreateStringValue("script.js")); // If the script provides its own match patterns, we use those. Otherwise, we // generate some using the include globs. - ListValue* matches = new ListValue(); + base::ListValue* matches = new base::ListValue(); if (!script.url_patterns().is_empty()) { for (URLPatternSet::const_iterator i = script.url_patterns().begin(); i != script.url_patterns().end(); ++i) { @@ -119,7 +119,7 @@ scoped_refptr<Extension> ConvertUserScriptToExtension( } // Read the exclude matches, if any are present. - ListValue* exclude_matches = new ListValue(); + base::ListValue* exclude_matches = new base::ListValue(); if (!script.exclude_url_patterns().is_empty()) { for (URLPatternSet::const_iterator i = script.exclude_url_patterns().begin(); @@ -128,11 +128,11 @@ scoped_refptr<Extension> ConvertUserScriptToExtension( } } - ListValue* includes = new ListValue(); + base::ListValue* includes = new base::ListValue(); for (size_t i = 0; i < script.globs().size(); ++i) includes->Append(Value::CreateStringValue(script.globs().at(i))); - ListValue* excludes = new ListValue(); + base::ListValue* excludes = new base::ListValue(); for (size_t i = 0; i < script.exclude_globs().size(); ++i) excludes->Append(Value::CreateStringValue(script.exclude_globs().at(i))); @@ -151,7 +151,7 @@ scoped_refptr<Extension> ConvertUserScriptToExtension( // This is the default, but store it just in case we change that. content_script->SetString(keys::kRunAt, values::kRunAtDocumentIdle); - ListValue* content_scripts = new ListValue(); + base::ListValue* content_scripts = new base::ListValue(); content_scripts->Append(content_script); root->Set(keys::kContentScripts, content_scripts); |