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

Side by Side Diff: chrome/browser/chromeos/arc/enterprise/arc_enterprise_reporting_service.cc

Issue 2573463002: Remove unused ArcUserDataService. (Closed)
Patch Set: Created 4 years 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/chromeos/arc/arc_service_launcher.cc ('k') | components/arc/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/arc/enterprise/arc_enterprise_reporting_servic e.h" 5 #include "chrome/browser/chromeos/arc/enterprise/arc_enterprise_reporting_servic e.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "chrome/browser/chromeos/arc/arc_session_manager.h" 11 #include "chrome/browser/chromeos/arc/arc_session_manager.h"
12 #include "components/arc/arc_bridge_service.h" 12 #include "components/arc/arc_bridge_service.h"
13 #include "components/arc/arc_service_manager.h" 13 #include "components/arc/arc_service_manager.h"
14 #include "components/arc/user_data/arc_user_data_service.h"
15 14
16 namespace arc { 15 namespace arc {
17 16
18 ArcEnterpriseReportingService::ArcEnterpriseReportingService( 17 ArcEnterpriseReportingService::ArcEnterpriseReportingService(
19 ArcBridgeService* bridge_service) 18 ArcBridgeService* bridge_service)
20 : ArcService(bridge_service), binding_(this), weak_ptr_factory_(this) { 19 : ArcService(bridge_service), binding_(this), weak_ptr_factory_(this) {
21 arc_bridge_service()->enterprise_reporting()->AddObserver(this); 20 arc_bridge_service()->enterprise_reporting()->AddObserver(this);
22 } 21 }
23 22
24 ArcEnterpriseReportingService::~ArcEnterpriseReportingService() { 23 ArcEnterpriseReportingService::~ArcEnterpriseReportingService() {
(...skipping 16 matching lines...) Expand all
41 VLOG(1) << "ReportManagementState state=" << state; 40 VLOG(1) << "ReportManagementState state=" << state;
42 41
43 if (state == mojom::ManagementState::MANAGED_DO_LOST) { 42 if (state == mojom::ManagementState::MANAGED_DO_LOST) {
44 DCHECK(ArcServiceManager::Get()); 43 DCHECK(ArcServiceManager::Get());
45 ArcSessionManager::Get()->RemoveArcData(); 44 ArcSessionManager::Get()->RemoveArcData();
46 ArcSessionManager::Get()->StopAndEnableArc(); 45 ArcSessionManager::Get()->StopAndEnableArc();
47 } 46 }
48 } 47 }
49 48
50 } // namespace arc 49 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_service_launcher.cc ('k') | components/arc/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698