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

Unified Diff: chrome/browser/ui/webui/options/clear_browser_data_handler.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/options/clear_browser_data_handler.cc
diff --git a/chrome/browser/ui/webui/options/clear_browser_data_handler.cc b/chrome/browser/ui/webui/options/clear_browser_data_handler.cc
index 4037188dd852324a3d734db331aa1bee6b131b83..157d1b6f8c4eaab50f3987dfaa8cc2e4b3cf2e03 100644
--- a/chrome/browser/ui/webui/options/clear_browser_data_handler.cc
+++ b/chrome/browser/ui/webui/options/clear_browser_data_handler.cc
@@ -145,7 +145,7 @@ void ClearBrowserDataHandler::UpdateInfoBannerVisibility() {
}
web_ui()->CallJavascriptFunctionUnsafe(
- "ClearBrowserDataOverlay.setBannerText", base::StringValue(text));
+ "ClearBrowserDataOverlay.setBannerText", base::Value(text));
}
void ClearBrowserDataHandler::OnPageOpened(const base::ListValue* value) {
@@ -386,8 +386,8 @@ void ClearBrowserDataHandler::UpdateCounterText(
DCHECK(AreCountersEnabled());
web_ui()->CallJavascriptFunctionUnsafe(
"ClearBrowserDataOverlay.updateCounter",
- base::StringValue(result->source()->GetPrefName()),
- base::StringValue(GetChromeCounterTextFromResult(result.get())));
+ base::Value(result->source()->GetPrefName()),
+ base::Value(GetChromeCounterTextFromResult(result.get())));
}
void ClearBrowserDataHandler::OnStateChanged(syncer::SyncService* sync) {

Powered by Google App Engine
This is Rietveld 408576698