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

Unified Diff: components/arc/arc_service_manager.cc

Issue 2165643004: arc: add enterprise_reporting.mojom interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed lhchavez's comments. Created 4 years, 5 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 | « components/arc/arc_service_manager.h ('k') | components/arc/common/arc_bridge.mojom » ('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 48de389a758f3c969ed72d21adc7b10c176d22c7..83d48ac18440461240933b586c85c0865ec3d155 100644
--- a/components/arc/arc_service_manager.cc
+++ b/components/arc/arc_service_manager.cc
@@ -100,8 +100,8 @@ void ArcServiceManager::OnPrimaryUserProfilePrepared(
std::unique_ptr<BooleanPrefMember> arc_enabled_pref) {
DCHECK(thread_checker_.CalledOnValidThread());
- AddService(base::WrapUnique(new ArcUserDataService(
- arc_bridge_service(), std::move(arc_enabled_pref), account_id)));
+ arc_user_data_service_.reset(new ArcUserDataService(arc_bridge_service(),
+ std::move(arc_enabled_pref), account_id));
AddService(base::WrapUnique(
new ArcNotificationManager(arc_bridge_service(), account_id)));
@@ -111,6 +111,7 @@ void ArcServiceManager::Shutdown() {
icon_loader_ = nullptr;
activity_resolver_ = nullptr;
services_.clear();
+ arc_user_data_service_ = nullptr;
Luis Héctor Chávez 2016/07/25 17:40:33 nit: move this one line above (and remove the extr
Polina Bondarenko 2016/07/25 20:03:31 Done.
}
// static
« no previous file with comments | « components/arc/arc_service_manager.h ('k') | components/arc/common/arc_bridge.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698