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

Unified Diff: chrome/browser/ui/app_list/search/webstore/webstore_provider.cc

Issue 1550053002: Convert Pass()→std::move() in //chrome/browser/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: chrome/browser/ui/app_list/search/webstore/webstore_provider.cc
diff --git a/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc b/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc
index 72f9f06b49b2a55ab8b42a22fe2a36dae58fda88..63e6556cee3d0b3cfa18bc6ad56b97df0d975cde 100644
--- a/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc
+++ b/chrome/browser/ui/app_list/search/webstore/webstore_provider.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/app_list/search/webstore/webstore_provider.h"
#include <string>
+#include <utility>
#include "base/bind.h"
#include "base/callback.h"
@@ -115,7 +116,7 @@ void WebstoreProvider::StartQuery() {
void WebstoreProvider::OnWebstoreSearchFetched(
scoped_ptr<base::DictionaryValue> json) {
ProcessWebstoreSearchResults(json.get());
- cache_->Put(WebserviceCache::WEBSTORE, query_, json.Pass());
+ cache_->Put(WebserviceCache::WEBSTORE, query_, std::move(json));
query_pending_ = false;
if (!webstore_search_fetched_callback_.is_null())
@@ -151,7 +152,7 @@ void WebstoreProvider::ProcessWebstoreSearchResults(
first_result = false;
}
- Add(result.Pass());
+ Add(std::move(result));
}
}

Powered by Google App Engine
This is Rietveld 408576698