Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 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_LEGACY_RETAIL_MODE_DETECTOR_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_LEGACY_RETAIL_MODE_DETECTOR_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "chrome/browser/chromeos/settings/device_settings_service.h" | |
| 10 | |
| 11 namespace base { | |
| 12 template <typename T> | |
| 13 struct DefaultLazyInstanceTraits; | |
| 14 } | |
| 15 | |
| 16 namespace chromeos { | |
| 17 | |
| 18 // This class detects if a device is enrolled in the legacy retail mode. | |
| 19 class LegacyRetailModeDetector { | |
| 20 public: | |
| 21 static LegacyRetailModeDetector* Get(); | |
| 22 | |
| 23 // This method checks if Kiosk Mode is enabled or not. | |
|
bartfab (slow)
2014/11/27 16:25:47
What kiosk mode is this talking about? We have a C
rkc
2014/12/01 19:15:04
This entire file is gone.
| |
| 24 virtual bool IsKioskModeEnabled(); | |
| 25 | |
| 26 protected: | |
| 27 // Needed here so MockKioskModeSettings can inherit from us. | |
| 28 LegacyRetailModeDetector(); | |
| 29 virtual ~LegacyRetailModeDetector(); | |
|
bartfab (slow)
2014/11/27 16:25:47
Nit: Use |override|, not |virtual|.
rkc
2014/12/01 19:15:04
Acknowledged.
| |
| 30 | |
| 31 private: | |
| 32 friend struct base::DefaultLazyInstanceTraits<LegacyRetailModeDetector>; | |
| 33 friend class KioskModeSettingsTest; | |
| 34 | |
| 35 // Makes sure the browser will switch to kiosk mode if cryptohome was not | |
|
bartfab (slow)
2014/11/27 16:25:47
As above - "kiosk mode" is not the right term here
rkc
2014/12/01 19:15:04
Acknowledged.
| |
| 36 // ready when the browser was starting after a machine reboot. | |
| 37 void VerifyModeIsKnown(DeviceSettingsService::OwnershipStatus status); | |
| 38 | |
| 39 bool is_kiosk_mode_; | |
|
bartfab (slow)
2014/11/27 16:25:47
As above - "kiosk mode" is not the right term here
rkc
2014/12/01 19:15:04
Acknowledged.
| |
| 40 | |
| 41 DISALLOW_COPY_AND_ASSIGN(LegacyRetailModeDetector); | |
| 42 }; | |
| 43 | |
| 44 } // namespace chromeos | |
| 45 | |
| 46 #endif // CHROME_BROWSER_CHROMEOS_LEGACY_RETAIL_MODE_DETECTOR_H_ | |
| OLD | NEW |