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

Side by Side Diff: chrome/browser/chromeos/policy/consumer_unenrollment_handler.h

Issue 2230533002: Delete dead consumer enrollment code. (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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_UNENROLLMENT_HANDLER_H_
6 #define CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_UNENROLLMENT_HANDLER_H_
7
8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h"
10 #include "components/keyed_service/core/keyed_service.h"
11
12 namespace chromeos {
13 class OwnerSettingsServiceChromeOS;
14 }
15
16 namespace policy {
17
18 class ConsumerManagementService;
19 class DeviceCloudPolicyManagerChromeOS;
20
21 // ConsumerUnenrollmentHandler unenrolls the device from the consumer management
22 // service. It sends a request to the server and resets the management settings.
23 class ConsumerUnenrollmentHandler : public KeyedService {
24 public:
25 ConsumerUnenrollmentHandler(
26 ConsumerManagementService* consumer_management_service,
27 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager,
28 chromeos::OwnerSettingsServiceChromeOS* owner_settings_service);
29 ~ConsumerUnenrollmentHandler() override;
30
31 // Starts the unenrollment process.
32 void Start();
33
34 private:
35 void OnUnregistered(bool success);
36 void OnManagementSettingsSet(bool success);
37
38 ConsumerManagementService* consumer_management_service_;
39 DeviceCloudPolicyManagerChromeOS* device_cloud_policy_manager_;
40 chromeos::OwnerSettingsServiceChromeOS* owner_settings_service_;
41
42 base::WeakPtrFactory<ConsumerUnenrollmentHandler> weak_factory_;
43
44 DISALLOW_COPY_AND_ASSIGN(ConsumerUnenrollmentHandler);
45 };
46
47 } // namespace policy
48
49 #endif // CHROME_BROWSER_CHROMEOS_POLICY_CONSUMER_UNENROLLMENT_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698