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

Unified Diff: chrome/browser/ui/webui/invalidations_message_handler.cc

Issue 2030013003: Remove ListValue::Append(new {Fundamental,String}Value(...)) pattern in //chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 80b81007bc6fda1e9b1389b5ebe4411c35248973..372c789230ceb5cf42da034e5babfa4ac602037f 100644
--- a/chrome/browser/ui/webui/invalidations_message_handler.cc
+++ b/chrome/browser/ui/webui/invalidations_message_handler.cc
@@ -76,7 +76,7 @@ void InvalidationsMessageHandler::OnRegistrationChange(
for (std::multiset<std::string>::const_iterator it =
registered_handlers.begin();
it != registered_handlers.end(); ++it) {
- list_of_handlers.Append(new base::StringValue(*it));
+ list_of_handlers.AppendString(*it);
}
web_ui()->CallJavascriptFunction("chrome.invalidations.updateHandlers",
list_of_handlers);

Powered by Google App Engine
This is Rietveld 408576698