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

Unified Diff: chrome/browser/ui/omnibox/chrome_omnibox_client.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/omnibox/chrome_omnibox_client.cc
diff --git a/chrome/browser/ui/omnibox/chrome_omnibox_client.cc b/chrome/browser/ui/omnibox/chrome_omnibox_client.cc
index f9fa3781bd33feb0dfe4fbc5c26c10e72e4cb06e..a7250054856aa63707116b6ca701ade0e49405e8 100644
--- a/chrome/browser/ui/omnibox/chrome_omnibox_client.cc
+++ b/chrome/browser/ui/omnibox/chrome_omnibox_client.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/callback.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/metrics/histogram.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
@@ -133,17 +134,17 @@ ChromeOmniboxClient::~ChromeOmniboxClient() {
image_service->CancelRequest(request_id_);
}
-scoped_ptr<AutocompleteProviderClient>
+std::unique_ptr<AutocompleteProviderClient>
ChromeOmniboxClient::CreateAutocompleteProviderClient() {
- return make_scoped_ptr(new ChromeAutocompleteProviderClient(profile_));
+ return base::WrapUnique(new ChromeAutocompleteProviderClient(profile_));
}
-scoped_ptr<OmniboxNavigationObserver>
+std::unique_ptr<OmniboxNavigationObserver>
ChromeOmniboxClient::CreateOmniboxNavigationObserver(
const base::string16& text,
const AutocompleteMatch& match,
const AutocompleteMatch& alternate_nav_match) {
- return make_scoped_ptr(new ChromeOmniboxNavigationObserver(
+ return base::WrapUnique(new ChromeOmniboxNavigationObserver(
profile_, text, match, alternate_nav_match));
}
« no previous file with comments | « chrome/browser/ui/omnibox/chrome_omnibox_client.h ('k') | chrome/browser/ui/omnibox/chrome_omnibox_navigation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698