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

Unified Diff: chrome/browser/ui/app_list/search/suggestions/suggestions_search_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/suggestions/suggestions_search_provider.cc
diff --git a/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc b/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc
index 671fc649c7c1e095b14dbcc8870ab941e8443fe5..eeeb4f6b8598f9b35004e90b6b7a5801b836b7ca 100644
--- a/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc
+++ b/chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.h"
+#include <utility>
+
#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "chrome/browser/favicon/favicon_service_factory.h"
@@ -84,7 +86,7 @@ void SuggestionsSearchProvider::OnSuggestionsProfileAvailable(
profile_, list_controller_, favicon_service_, suggestions_service_,
suggestion));
result->set_relevance(1.0 / (i + 1));
- Add(result.Pass());
+ Add(std::move(result));
}
}

Powered by Google App Engine
This is Rietveld 408576698