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

Unified Diff: chrome/browser/ui/app_list/app_list_syncable_service_factory.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/app_list_syncable_service_factory.cc
diff --git a/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc b/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc
index 0a237896d26ca306a0d45d1422150d416db6a90a..9d89d8b3688a90334ad6da86867c4f3f491a5d00 100644
--- a/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc
+++ b/chrome/browser/ui/app_list/app_list_syncable_service_factory.cc
@@ -6,6 +6,7 @@
#include <set>
+#include "base/memory/ptr_util.h"
#include "build/build_config.h"
#include "chrome/browser/apps/drive/drive_app_provider.h"
#include "chrome/browser/profiles/incognito_helpers.h"
@@ -37,7 +38,7 @@ AppListSyncableServiceFactory* AppListSyncableServiceFactory::GetInstance() {
}
// static
-scoped_ptr<KeyedService> AppListSyncableServiceFactory::BuildInstanceFor(
+std::unique_ptr<KeyedService> AppListSyncableServiceFactory::BuildInstanceFor(
content::BrowserContext* browser_context) {
Profile* profile = static_cast<Profile*>(browser_context);
#if defined(OS_CHROMEOS)
@@ -46,7 +47,7 @@ scoped_ptr<KeyedService> AppListSyncableServiceFactory::BuildInstanceFor(
#endif
VLOG(1) << "BuildInstanceFor: " << profile->GetDebugName()
<< " (" << profile << ")";
- return make_scoped_ptr(new AppListSyncableService(
+ return base::WrapUnique(new AppListSyncableService(
profile, extensions::ExtensionSystem::Get(profile)));
}
« no previous file with comments | « chrome/browser/ui/app_list/app_list_syncable_service_factory.h ('k') | chrome/browser/ui/app_list/app_list_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698