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

Unified Diff: chrome/browser/chromeos/system/device_disabling_manager.h

Issue 2815893002: Break circular dependency between InitializeDeviceDisablingManager and DeviceDisabledScreen (Closed)
Patch Set: Different approach, moved Init() outside constructor Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/system/device_disabling_manager.h
diff --git a/chrome/browser/chromeos/system/device_disabling_manager.h b/chrome/browser/chromeos/system/device_disabling_manager.h
index c8e7ebaa7b27b3b0698cde3a7b2429ab84127a8d..8515b5aee057660b8c30a16d9566714fb3583b8c 100644
--- a/chrome/browser/chromeos/system/device_disabling_manager.h
+++ b/chrome/browser/chromeos/system/device_disabling_manager.h
@@ -88,6 +88,8 @@ class DeviceDisablingManager {
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);
+ void Init();
emaxx 2017/04/13 13:57:31 nit: Please add a comment like "Must be called aft
emaxx 2017/04/13 13:57:31 nit: Move this method upper, right between constru
Ivan Šandrk 2017/04/13 14:22:25 Should I maybe create a factory method or somethin
emaxx 2017/04/13 14:30:01 But how will the bug resolved then? If you do all
Ivan Šandrk 2017/04/13 14:44:09 Done.
Ivan Šandrk 2017/04/13 14:44:09 Done.
Ivan Šandrk 2017/04/13 14:44:09 Haha good point, forgot about that. Was too focuse
+
// Returns the cached domain that owns the device. The domain is only
// guaranteed to be up to date if the disabled screen was triggered.
const std::string& enrollment_domain() const { return enrollment_domain_; }
@@ -107,8 +109,6 @@ class DeviceDisablingManager {
static bool HonorDeviceDisablingDuringNormalOperation();
private:
- void Init();
-
// Cache the disabled message and inform observers if it changed.
void CacheDisabledMessageAndNotify(const std::string& disabled_message);

Powered by Google App Engine
This is Rietveld 408576698