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

Side by Side Diff: chrome/browser/upgrade_detector_impl.h

Issue 333313003: Simulate variation seeds using installed version string. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 6 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/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "base/version.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
19 // Returns the currently installed Chrome version, which may be newer than the
20 // one currently running. Not supported on Android, iOS or ChromeOS. Must be
21 // run on a thread where I/O operations are allowed (e.g. FILE thread).
22 static base::Version GetCurrentlyInstalledVersion();
23
18 // Returns the singleton instance. 24 // Returns the singleton instance.
19 static UpgradeDetectorImpl* GetInstance(); 25 static UpgradeDetectorImpl* GetInstance();
20 26
21 private: 27 private:
22 friend struct DefaultSingletonTraits<UpgradeDetectorImpl>; 28 friend struct DefaultSingletonTraits<UpgradeDetectorImpl>;
23 29
24 UpgradeDetectorImpl(); 30 UpgradeDetectorImpl();
25 31
26 // Start the timer that will call |CheckForUpgrade()|. 32 // Start the timer that will call |CheckForUpgrade()|.
27 void StartTimerForUpgradeCheck(); 33 void StartTimerForUpgradeCheck();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 bool is_auto_update_enabled_; 75 bool is_auto_update_enabled_;
70 76
71 // The date the binaries were built. 77 // The date the binaries were built.
72 base::Time build_date_; 78 base::Time build_date_;
73 79
74 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl); 80 DISALLOW_COPY_AND_ASSIGN(UpgradeDetectorImpl);
75 }; 81 };
76 82
77 83
78 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_ 84 #endif // CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/metrics/variations/variations_service.cc ('k') | chrome/browser/upgrade_detector_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698