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

Unified Diff: ios/chrome/browser/autocomplete/shortcuts_backend_factory.mm

Issue 1861593005: Convert //ios 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: ios/chrome/browser/autocomplete/shortcuts_backend_factory.mm
diff --git a/ios/chrome/browser/autocomplete/shortcuts_backend_factory.mm b/ios/chrome/browser/autocomplete/shortcuts_backend_factory.mm
index 8d33e86ed938c94c930de179537e7b85cc2e0619..2d1c7637877bec23405325f3bdb29871eb845de5 100644
--- a/ios/chrome/browser/autocomplete/shortcuts_backend_factory.mm
+++ b/ios/chrome/browser/autocomplete/shortcuts_backend_factory.mm
@@ -4,6 +4,7 @@
#include "ios/chrome/browser/autocomplete/shortcuts_backend_factory.h"
+#include "base/memory/ptr_util.h"
#include "base/memory/singleton.h"
#include "components/keyed_service/core/service_access_type.h"
#include "components/keyed_service/ios/browser_state_dependency_manager.h"
@@ -26,7 +27,7 @@ scoped_refptr<ShortcutsBackend> CreateShortcutsBackend(
bool suppress_db) {
scoped_refptr<ShortcutsBackend> shortcuts_backend(new ShortcutsBackend(
ios::TemplateURLServiceFactory::GetForBrowserState(browser_state),
- make_scoped_ptr(new ios::UIThreadSearchTermsData(browser_state)),
+ base::WrapUnique(new ios::UIThreadSearchTermsData(browser_state)),
ios::HistoryServiceFactory::GetForBrowserState(
browser_state, ServiceAccessType::EXPLICIT_ACCESS),
web::WebThread::GetTaskRunnerForThread(web::WebThread::DB),

Powered by Google App Engine
This is Rietveld 408576698