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

Unified Diff: chrome/browser/ui/webui/invalidations_message_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/invalidations_message_handler.cc
diff --git a/chrome/browser/ui/webui/invalidations_message_handler.cc b/chrome/browser/ui/webui/invalidations_message_handler.cc
index e6cf9d9bc8a0fb658d41753546e5eaea161c32a0..74150647fd264c1bc19b7a311090473f26a02bc9 100644
--- a/chrome/browser/ui/webui/invalidations_message_handler.cc
+++ b/chrome/browser/ui/webui/invalidations_message_handler.cc
@@ -89,7 +89,7 @@ void InvalidationsMessageHandler::OnStateChange(
const base::Time& last_changed_timestamp) {
std::string state(syncer::InvalidatorStateToString(new_state));
web_ui()->CallJavascriptFunctionUnsafe(
- "chrome.invalidations.updateInvalidatorState", base::StringValue(state),
+ "chrome.invalidations.updateInvalidatorState", base::Value(state),
base::Value(last_changed_timestamp.ToJsTime()));
}
@@ -107,7 +107,7 @@ void InvalidationsMessageHandler::OnUpdateIds(
list_of_objects.Append(std::move(dic));
}
web_ui()->CallJavascriptFunctionUnsafe("chrome.invalidations.updateIds",
- base::StringValue(handler_name),
+ base::Value(handler_name),
list_of_objects);
}
void InvalidationsMessageHandler::OnDebugMessage(
« no previous file with comments | « chrome/browser/ui/webui/instant_ui.cc ('k') | chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698