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

Unified Diff: components/arc/arc_service_manager.cc

Issue 2257793002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « no previous file | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/arc/arc_service_manager.cc
diff --git a/components/arc/arc_service_manager.cc b/components/arc/arc_service_manager.cc
index a206fd4ce9270568d7b6792efb3e740fcf1e46cc..4bcdcd243c75ad28e6863f3c6d98da9a2728f259 100644
--- a/components/arc/arc_service_manager.cc
+++ b/components/arc/arc_service_manager.cc
@@ -55,17 +55,16 @@ ArcServiceManager::ArcServiceManager(
ArcBridgeBootstrap::Create()));
}
- AddService(base::WrapUnique(new ArcAudioBridge(arc_bridge_service())));
- AddService(base::WrapUnique(new ArcBluetoothBridge(arc_bridge_service())));
- AddService(base::WrapUnique(new ArcClipboardBridge(arc_bridge_service())));
- AddService(
- base::WrapUnique(new ArcCrashCollectorBridge(arc_bridge_service())));
- AddService(base::WrapUnique(new ArcImeService(arc_bridge_service())));
- AddService(base::WrapUnique(new ArcMetricsService(arc_bridge_service())));
- AddService(base::WrapUnique(new ArcNetHostImpl(arc_bridge_service())));
- AddService(base::WrapUnique(new ArcObbMounterBridge(arc_bridge_service())));
- AddService(base::WrapUnique(new ArcPowerBridge(arc_bridge_service())));
- AddService(base::WrapUnique(new ArcStorageManager(arc_bridge_service())));
+ AddService(base::MakeUnique<ArcAudioBridge>(arc_bridge_service()));
+ AddService(base::MakeUnique<ArcBluetoothBridge>(arc_bridge_service()));
+ AddService(base::MakeUnique<ArcClipboardBridge>(arc_bridge_service()));
+ AddService(base::MakeUnique<ArcCrashCollectorBridge>(arc_bridge_service()));
+ AddService(base::MakeUnique<ArcImeService>(arc_bridge_service()));
+ AddService(base::MakeUnique<ArcMetricsService>(arc_bridge_service()));
+ AddService(base::MakeUnique<ArcNetHostImpl>(arc_bridge_service()));
+ AddService(base::MakeUnique<ArcObbMounterBridge>(arc_bridge_service()));
+ AddService(base::MakeUnique<ArcPowerBridge>(arc_bridge_service()));
+ AddService(base::MakeUnique<ArcStorageManager>(arc_bridge_service()));
}
ArcServiceManager::~ArcServiceManager() {
@@ -99,8 +98,8 @@ void ArcServiceManager::OnPrimaryUserProfilePrepared(
const AccountId& account_id,
std::unique_ptr<BooleanPrefMember> arc_enabled_pref) {
DCHECK(thread_checker_.CalledOnValidThread());
- AddService(base::WrapUnique(
- new ArcNotificationManager(arc_bridge_service(), account_id)));
+ AddService(base::MakeUnique<ArcNotificationManager>(arc_bridge_service(),
+ account_id));
}
void ArcServiceManager::Shutdown() {
« no previous file with comments | « no previous file | components/arc/bluetooth/arc_bluetooth_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698