Index: chrome/browser/chromeos/version_loader.h |
diff --git a/chrome/browser/chromeos/version_loader.h b/chrome/browser/chromeos/version_loader.h |
index 219cd3a9058c867f10996181f6e7fe0396353830..bf90bc88e9ea4a272d70d653167018dbaf189e99 100644 |
--- a/chrome/browser/chromeos/version_loader.h |
+++ b/chrome/browser/chromeos/version_loader.h |
@@ -59,6 +59,12 @@ class VersionLoader : public CancelableRequestProvider { |
Handle GetFirmware(CancelableRequestConsumerBase* consumer, |
GetFirmwareCallback* callback); |
+ // Parse the version information as a Chrome platfrom, not Chrome OS |
+ // TODO(rkc): Change this and everywhere it is used once we switch Chrome OS |
+ // over to xx.yyy.zz version numbers instead of 0.xx.yyy.zz |
+ // Refer to http://code.google.com/p/chromium-os/issues/detail?id=15789 |
+ void EnablePlatformVersions(bool enable); |
+ |
static const char kFullVersionPrefix[]; |
static const char kVersionPrefix[]; |
static const char kFirmwarePrefix[]; |
@@ -72,7 +78,7 @@ class VersionLoader : public CancelableRequestProvider { |
// and extract the version. |
class Backend : public base::RefCountedThreadSafe<Backend> { |
public: |
- Backend() {} |
+ Backend() : parse_as_platform_(false) {} |
// Calls ParseVersion to get the version # and notifies request. |
// This is invoked on the file thread. |
@@ -84,9 +90,13 @@ class VersionLoader : public CancelableRequestProvider { |
// This is invoked on the file thread. |
void GetFirmware(scoped_refptr<GetFirmwareRequest> request); |
+ void set_parse_as_platform(bool value) { parse_as_platform_ = value; } |
+ |
private: |
friend class base::RefCountedThreadSafe<Backend>; |
+ bool parse_as_platform_; |
+ |
~Backend() {} |
DISALLOW_COPY_AND_ASSIGN(Backend); |