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

Unified Diff: chrome/browser/chromeos/upgrade_detector_chromeos.h

Issue 8568020: chromeos: Explicitly initialize and shut down UpgradeDetectorChromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix UpdateScreenTest Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/upgrade_detector_chromeos.h
diff --git a/chrome/browser/chromeos/upgrade_detector_chromeos.h b/chrome/browser/chromeos/upgrade_detector_chromeos.h
index 86e5b508a258ec283c0b5b439ab3abee0102b192..e343d6b03ce5a4c771152426629f977ca8c68ce7 100644
--- a/chrome/browser/chromeos/upgrade_detector_chromeos.h
+++ b/chrome/browser/chromeos/upgrade_detector_chromeos.h
@@ -19,6 +19,14 @@ class UpgradeDetectorChromeos : public UpgradeDetector,
static UpgradeDetectorChromeos* GetInstance();
+ // Initializes the object. Starts observing changes from the update
+ // engine.
+ void Init();
+
+ // Shuts down the object. Stops observing observe changes from the
+ // update engine.
+ void Shutdown();
+
private:
friend struct DefaultSingletonTraits<UpgradeDetectorChromeos>;
@@ -36,6 +44,7 @@ class UpgradeDetectorChromeos : public UpgradeDetector,
// After we detect an upgrade we start a recurring timer to see if enough time
// has passed and we should start notifying the user.
base::RepeatingTimer<UpgradeDetectorChromeos> upgrade_notification_timer_;
+ bool initialized_;
};
#endif // CHROME_BROWSER_CHROMEOS_UPGRADE_DETECTOR_CHROMEOS_H_
« no previous file with comments | « chrome/browser/chromeos/login/update_screen_browsertest.cc ('k') | chrome/browser/chromeos/upgrade_detector_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698