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

Unified Diff: chrome/browser/upgrade_detector_impl.h

Issue 11440020: Add an outdated upgrade bubble view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some more self-CR cleanups Created 7 years, 11 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/upgrade_detector_impl.h
diff --git a/chrome/browser/upgrade_detector_impl.h b/chrome/browser/upgrade_detector_impl.h
index 435d294b662f214c6a3edca76eb124527b723ba8..3182c10d9f1825497f64e7ea6453c867775efedd 100644
--- a/chrome/browser/upgrade_detector_impl.h
+++ b/chrome/browser/upgrade_detector_impl.h
@@ -28,13 +28,22 @@ class UpgradeDetectorImpl : public UpgradeDetector {
// Sends out a notification and starts a one shot timer to wait until
// notifying the user.
- void UpgradeDetected();
+ void UpgradeDetected(bool critical, bool unstable_channel);
+
+ // Get the current network time and compare it to the build time to identify
+ // an outdated install.
+ void CompareBuildTimeToSaneTime();
// 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(
+ base::WeakPtr<UpgradeDetectorImpl> upgrade_detector);
+
// We periodically check to see if Chrome has been upgraded.
base::RepeatingTimer<UpgradeDetectorImpl> detect_upgrade_timer_;
@@ -50,6 +59,12 @@ class UpgradeDetectorImpl : public UpgradeDetector {
// True if this build is a dev or canary channel build.
bool is_unstable_channel_;
+ // True if group policies and platform accepts reinstalls for outdated builds.
+ bool is_outdated_reinstall_allowed_;
+
+ // The date the binaries were built.
+ base::Time build_date_;
+
DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl);
};

Powered by Google App Engine
This is Rietveld 408576698