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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_ui.cc

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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
Index: chrome/browser/ui/webui/ntp/new_tab_ui.cc
diff --git a/chrome/browser/ui/webui/ntp/new_tab_ui.cc b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
index c5db07c2156a65f745b4c25411525b3920d9613a..aa82c60580ebe23c6646a96c15681f8bbd4c8916 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_ui.cc
+++ b/chrome/browser/ui/webui/ntp/new_tab_ui.cc
@@ -89,9 +89,10 @@ NewTabUI::NewTabUI(content::WebUI* web_ui)
NewTabUI::~NewTabUI() {}
void NewTabUI::OnShowBookmarkBarChanged() {
- base::StringValue attached(
- GetProfile()->GetPrefs()->GetBoolean(bookmarks::prefs::kShowBookmarkBar) ?
- "true" : "false");
+ base::Value attached(
+ GetProfile()->GetPrefs()->GetBoolean(bookmarks::prefs::kShowBookmarkBar)
+ ? "true"
+ : "false");
web_ui()->CallJavascriptFunctionUnsafe("ntp.setBookmarkBarAttached",
attached);
}

Powered by Google App Engine
This is Rietveld 408576698