summaryrefslogtreecommitdiffstats
path: root/chrome/browser/upgrade_detector.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/upgrade_detector.h')
-rw-r--r--chrome/browser/upgrade_detector.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/upgrade_detector.h b/chrome/browser/upgrade_detector.h
index 7c15128..e6aa6a6 100644
--- a/chrome/browser/upgrade_detector.h
+++ b/chrome/browser/upgrade_detector.h
@@ -6,9 +6,9 @@
#define CHROME_BROWSER_UPGRADE_DETECTOR_H_
#pragma once
-#include "base/singleton.h"
#include "base/timer.h"
+template <typename T> struct DefaultSingletonTraits;
class PrefService;
///////////////////////////////////////////////////////////////////////////////
@@ -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();