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

Unified Diff: chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.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/url_suggestion_result.cc
diff --git a/chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.cc b/chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.cc
index 3b1904e69faa224a8dac31715b054edeb9b939d9..8718dac314b71a46ad33bbd39cc9bcae90c43386 100644
--- a/chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.cc
+++ b/chrome/browser/ui/app_list/search/suggestions/url_suggestion_result.cc
@@ -50,12 +50,12 @@ void URLSuggestionResult::Open(int event_flags) {
ui::DispositionFromEventFlags(event_flags));
}
-scoped_ptr<SearchResult> URLSuggestionResult::Duplicate() const {
+std::unique_ptr<SearchResult> URLSuggestionResult::Duplicate() const {
URLSuggestionResult* new_result = new URLSuggestionResult(
profile_, list_controller_, favicon_service_, suggestions_service_,
suggestion_);
new_result->set_relevance(relevance());
- return scoped_ptr<SearchResult>(new_result);
+ return std::unique_ptr<SearchResult>(new_result);
}
void URLSuggestionResult::UpdateIcon() {

Powered by Google App Engine
This is Rietveld 408576698