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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 3010ca20866d6fed55a8f6a9db5419655c43cdcf..80b81007bc6fda1e9b1389b5ebe4411c35248973 100644
--- a/chrome/browser/ui/webui/invalidations_message_handler.cc
+++ b/chrome/browser/ui/webui/invalidations_message_handler.cc
@@ -98,7 +98,7 @@ void InvalidationsMessageHandler::OnUpdateIds(
for (syncer::ObjectIdCountMap::const_iterator it = ids.begin();
it != ids.end();
++it) {
- scoped_ptr<base::DictionaryValue> dic(new base::DictionaryValue());
+ std::unique_ptr<base::DictionaryValue> dic(new base::DictionaryValue());
dic->SetString("name", (it->first).name());
dic->SetInteger("source", (it->first).source());
dic->SetInteger("totalCount", it->second);
@@ -113,7 +113,8 @@ void InvalidationsMessageHandler::OnDebugMessage(
void InvalidationsMessageHandler::OnInvalidation(
const syncer::ObjectIdInvalidationMap& new_invalidations) {
- scoped_ptr<base::ListValue> invalidations_list = new_invalidations.ToValue();
+ std::unique_ptr<base::ListValue> invalidations_list =
+ new_invalidations.ToValue();
web_ui()->CallJavascriptFunction("chrome.invalidations.logInvalidations",
*invalidations_list);
}
« no previous file with comments | « chrome/browser/ui/webui/invalidations_message_handler.h ('k') | chrome/browser/ui/webui/large_icon_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698