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

Side by Side 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: More CR comments addressed and now a testable version without current time test yet. 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ 5 #ifndef CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_
6 #define CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ 6 #define CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "base/time.h"
9 #include "base/timer.h" 10 #include "base/timer.h"
10 #include "chrome/browser/upgrade_detector.h" 11 #include "chrome/browser/upgrade_detector.h"
11 12
12 template <typename T> struct DefaultSingletonTraits; 13 template <typename T> struct DefaultSingletonTraits;
13 14
14 class UpgradeDetectorImpl : public UpgradeDetector { 15 class UpgradeDetectorImpl : public UpgradeDetector {
15 public: 16 public:
16 virtual ~UpgradeDetectorImpl(); 17 virtual ~UpgradeDetectorImpl();
17 18
18 // Returns the singleton instance. 19 // Returns the singleton instance.
(...skipping 24 matching lines...) Expand all
43 base::RepeatingTimer<UpgradeDetectorImpl> upgrade_notification_timer_; 44 base::RepeatingTimer<UpgradeDetectorImpl> upgrade_notification_timer_;
44 45
45 // We use this factory to create callback tasks for UpgradeDetected. We pass 46 // We use this factory to create callback tasks for UpgradeDetected. We pass
46 // the task to the actual upgrade detection code, which is in 47 // the task to the actual upgrade detection code, which is in
47 // DetectUpgradeTask. 48 // DetectUpgradeTask.
48 base::WeakPtrFactory<UpgradeDetectorImpl> weak_factory_; 49 base::WeakPtrFactory<UpgradeDetectorImpl> weak_factory_;
49 50
50 // True if this build is a dev or canary channel build. 51 // True if this build is a dev or canary channel build.
51 bool is_unstable_channel_; 52 bool is_unstable_channel_;
52 53
54 // The date the binaries were built.
55 base::Time build_date_;
56
53 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl); 57 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl);
54 }; 58 };
55 59
56 60
57 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ 61 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698