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

Unified Diff: chrome/browser/ui/app_list/search/omnibox_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/omnibox_result.cc
diff --git a/chrome/browser/ui/app_list/search/omnibox_result.cc b/chrome/browser/ui/app_list/search/omnibox_result.cc
index 067bb80db7f7d9c241e121caf82733e111636f50..3404e9eea27ec7dd6413fefea409e50073f446e8 100644
--- a/chrome/browser/ui/app_list/search/omnibox_result.cc
+++ b/chrome/browser/ui/app_list/search/omnibox_result.cc
@@ -159,10 +159,10 @@ void OmniboxResult::Open(int event_flags) {
ui::DispositionFromEventFlags(event_flags));
}
-scoped_ptr<SearchResult> OmniboxResult::Duplicate() const {
- return scoped_ptr<SearchResult>(new OmniboxResult(profile_, list_controller_,
- autocomplete_controller_,
- is_voice_query_, match_));
+std::unique_ptr<SearchResult> OmniboxResult::Duplicate() const {
+ return std::unique_ptr<SearchResult>(
+ new OmniboxResult(profile_, list_controller_, autocomplete_controller_,
+ is_voice_query_, match_));
}
void OmniboxResult::UpdateIcon() {
« no previous file with comments | « chrome/browser/ui/app_list/search/omnibox_result.h ('k') | chrome/browser/ui/app_list/search/omnibox_result_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698