Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6500)

Unified Diff: chrome/browser/extensions/convert_user_script.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/debugger/devtools_window.cc ('k') | chrome/browser/extensions/convert_web_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/convert_user_script.cc
diff --git a/chrome/browser/extensions/convert_user_script.cc b/chrome/browser/extensions/convert_user_script.cc
index a8f2427d707bd13e74817f50bdfb35caf0b79368..3f08bc2a528157804ce88090c631d77225ff952a 100644
--- a/chrome/browser/extensions/convert_user_script.cc
+++ b/chrome/browser/extensions/convert_user_script.cc
@@ -97,7 +97,7 @@ scoped_refptr<Extension> ConvertUserScriptToExtension(
root->SetBoolean(keys::kConvertedFromUserScript, true);
ListValue* js_files = new ListValue();
- js_files->Append(Value::CreateStringValue("script.js"));
+ js_files->Append(base::StringValue::New("script.js"));
// If the script provides its own match patterns, we use those. Otherwise, we
// generate some using the include globs.
@@ -105,21 +105,21 @@ scoped_refptr<Extension> ConvertUserScriptToExtension(
if (!script.url_patterns().is_empty()) {
for (URLPatternSet::const_iterator i = script.url_patterns().begin();
i != script.url_patterns().end(); ++i) {
- matches->Append(Value::CreateStringValue(i->GetAsString()));
+ matches->Append(base::StringValue::New(i->GetAsString()));
}
} else {
// TODO(aa): Derive tighter matches where possible.
- matches->Append(Value::CreateStringValue("http://*/*"));
- matches->Append(Value::CreateStringValue("https://*/*"));
+ matches->Append(base::StringValue::New("http://*/*"));
+ matches->Append(base::StringValue::New("https://*/*"));
}
ListValue* includes = new ListValue();
for (size_t i = 0; i < script.globs().size(); ++i)
- includes->Append(Value::CreateStringValue(script.globs().at(i)));
+ includes->Append(base::StringValue::New(script.globs().at(i)));
ListValue* excludes = new ListValue();
for (size_t i = 0; i < script.exclude_globs().size(); ++i)
- excludes->Append(Value::CreateStringValue(script.exclude_globs().at(i)));
+ excludes->Append(base::StringValue::New(script.exclude_globs().at(i)));
DictionaryValue* content_script = new DictionaryValue();
content_script->Set(keys::kMatches, matches);
« no previous file with comments | « chrome/browser/debugger/devtools_window.cc ('k') | chrome/browser/extensions/convert_web_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698