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

Side by Side Diff: chrome/browser/chromeos/legacy_retail_mode_detector.h

Issue 608283003: Remove retail mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 (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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698