Index: chrome/browser/upgrade_detector_impl.h |
diff --git a/chrome/browser/upgrade_detector_impl.h b/chrome/browser/upgrade_detector_impl.h |
index 435d294b662f214c6a3edca76eb124527b723ba8..50a837b2eaef15ab22d9ea3a17afc57e12527851 100644 |
--- a/chrome/browser/upgrade_detector_impl.h |
+++ b/chrome/browser/upgrade_detector_impl.h |
@@ -23,18 +23,30 @@ class UpgradeDetectorImpl : public UpgradeDetector { |
UpgradeDetectorImpl(); |
+ // Start the timer that will call |CheckForUpgrade()|. |
+ void StartCheckForUpgradeTimer(); |
+ |
// Launches a task on the file thread to check if we have the latest version. |
void CheckForUpgrade(); |
// Sends out a notification and starts a one shot timer to wait until |
// notifying the user. |
- void UpgradeDetected(); |
+ void UpgradeDetected(UpgradeAvailable upgrade_available, |
+ bool unstable_channel); |
+ |
+ // Returns true after calling UpgradeDetected if current install is outdated. |
Finnur
2013/02/04 11:12:04
If you change what I suggested, then you can remov
MAD
2013/02/04 17:17:02
I didn't... I hope it's OK... :-)
|
+ bool CheckForOutdatedInstall(); |
// The function that sends out a notification (after a certain time has |
// elapsed) that lets the rest of the UI know we should start notifying the |
// user that a new version is available. |
void NotifyOnUpgrade(); |
+ // Called on the FILE thread to detect an upgrade. Calls back UpgradeDetected |
+ // on the UI thread if so. |
+ static void DetectUpgradeTask( |
Finnur
2013/02/04 11:12:04
Does this still need to be static. If so, I'd like
MAD
2013/02/04 17:17:02
For the same reason that we call InvalidateWeakPtr
Finnur
2013/02/04 21:30:17
I need a fresh mind to think about this. I'll try
Finnur
2013/02/05 10:52:19
So, to answer your question: No, I don't prefer th
MAD
2013/02/05 16:49:16
Ha! Now I see where the confusion is... It used to
Finnur
2013/02/05 22:14:50
Member function would be my preference.
MAD
2013/02/06 03:14:28
You mean not static?
(cause... you know... technic
Finnur
2013/02/06 10:26:49
I see.
|
+ base::WeakPtr<UpgradeDetectorImpl> upgrade_detector); |
+ |
// We periodically check to see if Chrome has been upgraded. |
base::RepeatingTimer<UpgradeDetectorImpl> detect_upgrade_timer_; |
@@ -50,6 +62,9 @@ class UpgradeDetectorImpl : public UpgradeDetector { |
// True if this build is a dev or canary channel build. |
bool is_unstable_channel_; |
+ // The date the binaries were built. |
+ base::Time build_date_; |
+ |
DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl); |
}; |