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

Unified Diff: chrome/browser/ui/webui/options/content_settings_handler.cc

Issue 11415226: webui/options: Do not use Value::CreateStringValue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Evan review Created 8 years, 1 month 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
Index: chrome/browser/ui/webui/options/content_settings_handler.cc
diff --git a/chrome/browser/ui/webui/options/content_settings_handler.cc b/chrome/browser/ui/webui/options/content_settings_handler.cc
index 5e217c3e29a3c8725b5428ee61c53c0877b1fcf4..eb3d8700bdda2dde6a1741f9cc428a80494cbec5 100644
--- a/chrome/browser/ui/webui/options/content_settings_handler.cc
+++ b/chrome/browser/ui/webui/options/content_settings_handler.cc
@@ -1246,17 +1246,17 @@ void ContentSettingsHandler::CheckExceptionPatternValidity(
is_valid = pattern.IsValid();
}
- scoped_ptr<Value> type_value(Value::CreateStringValue(type_string));
- scoped_ptr<Value> mode_value(Value::CreateStringValue(mode_string));
- scoped_ptr<Value> pattern_value(Value::CreateStringValue(pattern_string));
+ scoped_ptr<Value> type_value(new base::StringValue(type_string));
Evan Stade 2012/11/30 22:47:00 why do these still exist
tfarina 2012/11/30 23:07:31 Done.
+ scoped_ptr<Value> mode_value(new base::StringValue(mode_string));
+ scoped_ptr<Value> pattern_value(new base::StringValue(pattern_string));
scoped_ptr<Value> valid_value(Value::CreateBooleanValue(is_valid));
web_ui()->CallJavascriptFunction(
"ContentSettings.patternValidityCheckComplete",
- *type_value.get(),
- *mode_value.get(),
- *pattern_value.get(),
- *valid_value.get());
+ base::StringValue(type_string),
+ base::StringValue(mode_string),
+ base::StringValue(pattern_string),
+ base::FundamentalValue(is_valid));
}
// static

Powered by Google App Engine
This is Rietveld 408576698