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

Unified Diff: chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.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/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 6329248712dc6ee7e32d2b73386364e13b7f7ae2..aa73e192c532d1d59f66cd1a5c7704bdd697adfb 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,9 +4,9 @@
#include "chrome/browser/ui/app_list/search/suggestions/suggestions_search_provider.h"
+#include <memory>
#include <utility>
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string16.h"
#include "chrome/browser/favicon/favicon_service_factory.h"
#include "chrome/browser/profiles/profile.h"
@@ -51,9 +51,9 @@ void SuggestionsSearchProvider::Start(bool /*is_voice_query*/,
suggestions_profile.suggestions(i);
// TODO(mathp): If it's an app, create an AppResult.
- scoped_ptr<URLSuggestionResult> result(new URLSuggestionResult(
- profile_, list_controller_, favicon_service_, suggestions_service_,
- suggestion));
+ std::unique_ptr<URLSuggestionResult> result(
+ new URLSuggestionResult(profile_, list_controller_, favicon_service_,
+ suggestions_service_, suggestion));
result->set_relevance(1.0 / (i + 1));
Add(std::move(result));
}

Powered by Google App Engine
This is Rietveld 408576698