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

Unified Diff: chrome/browser/upgrade_detector.h

Issue 5711001: Add a new GetInstance() method for remaining files with singleton classes under chrome/browser. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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/upgrade_detector.h
diff --git a/chrome/browser/upgrade_detector.h b/chrome/browser/upgrade_detector.h
index 7c151285cc1e9300807778a8f586618a857ebbc9..5823608e628b318b523a7fe3e5e9b8f67b9a15c7 100644
--- a/chrome/browser/upgrade_detector.h
+++ b/chrome/browser/upgrade_detector.h
@@ -23,6 +23,9 @@ class PrefService;
//
class UpgradeDetector {
public:
+ // Returns the singleton instance.
+ static UpgradeDetector* GetInstance();
+
~UpgradeDetector();
static void RegisterPrefs(PrefService* prefs);
@@ -30,9 +33,10 @@ class UpgradeDetector {
bool notify_upgrade() { return notify_upgrade_; }
private:
- UpgradeDetector();
friend struct DefaultSingletonTraits<UpgradeDetector>;
+ UpgradeDetector();
+
// Launches a task on the file thread to check if we have the latest version.
void CheckForUpgrade();

Powered by Google App Engine
This is Rietveld 408576698