| Index: chrome/browser/chromeos/arc/arc_enterprise_reporting_service.cc
|
| diff --git a/chrome/browser/chromeos/arc/arc_enterprise_reporting_service.cc b/chrome/browser/chromeos/arc/arc_enterprise_reporting_service.cc
|
| deleted file mode 100644
|
| index f4ff3ab9aa97c955b81295a0ec88cc908e35d5be..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/chromeos/arc/arc_enterprise_reporting_service.cc
|
| +++ /dev/null
|
| @@ -1,50 +0,0 @@
|
| -// Copyright 2016 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "chrome/browser/chromeos/arc/arc_enterprise_reporting_service.h"
|
| -
|
| -#include <utility>
|
| -
|
| -#include "base/bind.h"
|
| -#include "base/logging.h"
|
| -#include "chrome/browser/chromeos/arc/arc_auth_service.h"
|
| -#include "components/arc/arc_bridge_service.h"
|
| -#include "components/arc/arc_service_manager.h"
|
| -#include "components/arc/user_data/arc_user_data_service.h"
|
| -
|
| -namespace arc {
|
| -
|
| -ArcEnterpriseReportingService::ArcEnterpriseReportingService(
|
| - ArcBridgeService* bridge_service)
|
| - : ArcService(bridge_service), binding_(this), weak_ptr_factory_(this) {
|
| - arc_bridge_service()->enterprise_reporting()->AddObserver(this);
|
| -}
|
| -
|
| -ArcEnterpriseReportingService::~ArcEnterpriseReportingService() {
|
| - DCHECK(thread_checker_.CalledOnValidThread());
|
| - arc_bridge_service()->enterprise_reporting()->RemoveObserver(this);
|
| -}
|
| -
|
| -void ArcEnterpriseReportingService::OnInstanceReady() {
|
| - DCHECK(thread_checker_.CalledOnValidThread());
|
| - auto* instance =
|
| - arc_bridge_service()->enterprise_reporting()->GetInstanceForMethod(
|
| - "Init");
|
| - DCHECK(instance);
|
| - instance->Init(binding_.CreateInterfacePtrAndBind());
|
| -}
|
| -
|
| -void ArcEnterpriseReportingService::ReportManagementState(
|
| - mojom::ManagementState state) {
|
| - DCHECK(thread_checker_.CalledOnValidThread());
|
| - VLOG(1) << "ReportManagementState state=" << state;
|
| -
|
| - if (state == mojom::ManagementState::MANAGED_DO_LOST) {
|
| - DCHECK(ArcServiceManager::Get());
|
| - ArcAuthService::Get()->RemoveArcData();
|
| - ArcAuthService::Get()->StopAndEnableArc();
|
| - }
|
| -}
|
| -
|
| -} // namespace arc
|
|
|