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

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

Issue 2705493002: [Merge-57] arc: Logging ARC data removal reasons (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/chromeos/arc/arc_session_manager.cc ('k') | no next file » | 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"
(...skipping 22 matching lines...) Expand all
33 instance->Init(binding_.CreateInterfacePtrAndBind()); 33 instance->Init(binding_.CreateInterfacePtrAndBind());
34 } 34 }
35 35
36 void ArcEnterpriseReportingService::ReportManagementState( 36 void ArcEnterpriseReportingService::ReportManagementState(
37 mojom::ManagementState state) { 37 mojom::ManagementState state) {
38 DCHECK(thread_checker_.CalledOnValidThread()); 38 DCHECK(thread_checker_.CalledOnValidThread());
39 VLOG(1) << "ReportManagementState state=" << state; 39 VLOG(1) << "ReportManagementState state=" << state;
40 40
41 if (state == mojom::ManagementState::MANAGED_DO_LOST) { 41 if (state == mojom::ManagementState::MANAGED_DO_LOST) {
42 DCHECK(ArcServiceManager::Get()); 42 DCHECK(ArcServiceManager::Get());
43 VLOG(1) << "Management state lost. Removing ARC user data.";
43 ArcSessionManager::Get()->RemoveArcData(); 44 ArcSessionManager::Get()->RemoveArcData();
44 ArcSessionManager::Get()->StopAndEnableArc(); 45 ArcSessionManager::Get()->StopAndEnableArc();
45 } 46 }
46 } 47 }
47 48
48 } // namespace arc 49 } // namespace arc
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/arc_session_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698