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

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

Issue 11415226: webui/options: Do not use Value::CreateStringValue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years 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/options_sync_setup_handler.cc
diff --git a/chrome/browser/ui/webui/options/options_sync_setup_handler.cc b/chrome/browser/ui/webui/options/options_sync_setup_handler.cc
index 32c4acc2e85063de61b590ed916b5fb8c7f7a20e..f1b43f2c9d4870ae0336c955d77206094c354745 100644
--- a/chrome/browser/ui/webui/options/options_sync_setup_handler.cc
+++ b/chrome/browser/ui/webui/options/options_sync_setup_handler.cc
@@ -20,8 +20,8 @@ OptionsSyncSetupHandler::~OptionsSyncSetupHandler() {
void OptionsSyncSetupHandler::ShowSetupUI() {
// Show the Sync Setup page.
- scoped_ptr<Value> page(Value::CreateStringValue("syncSetup"));
- web_ui()->CallJavascriptFunction("OptionsPage.navigateToPage", *page);
+ web_ui()->CallJavascriptFunction("OptionsPage.navigateToPage",
+ base::StringValue("syncSetup"));
}
} // namespace options
« no previous file with comments | « chrome/browser/ui/webui/options/manage_profile_handler.cc ('k') | chrome/browser/ui/webui/options/preferences_browsertest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698