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

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

Issue 1551033002: Convert Pass()→std::move() in //chrome (Android edition) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable RVO by making types match Created 5 years 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
« no previous file with comments | « chrome/browser/ui/android/ssl_client_certificate_request.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
diff --git a/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc b/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
index 257ae46e8e1103449690983175fd93682f59881f..7bcdc1f7e62b96345987abb99abf7f66804a1c6a 100644
--- a/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
+++ b/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/webui/popular_sites_internals_message_handler.h"
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/memory/ref_counted.h"
@@ -76,11 +77,11 @@ void PopularSitesInternalsMessageHandler::SendSites() {
scoped_ptr<base::DictionaryValue> entry(new base::DictionaryValue);
entry->SetString("title", site.title);
entry->SetString("url", site.url.spec());
- sites_list->Append(entry.Pass());
+ sites_list->Append(std::move(entry));
}
base::DictionaryValue result;
- result.Set("sites", sites_list.Pass());
+ result.Set("sites", std::move(sites_list));
web_ui()->CallJavascriptFunction(
"chrome.popular_sites_internals.receiveSites", result);
}
« no previous file with comments | « chrome/browser/ui/android/ssl_client_certificate_request.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698