| Index: chrome/browser/chromeos/system/statistics_provider.cc
|
| ===================================================================
|
| --- chrome/browser/chromeos/system/statistics_provider.cc (revision 114172)
|
| +++ chrome/browser/chromeos/system/statistics_provider.cc (working copy)
|
| @@ -14,6 +14,7 @@
|
| #include "base/time.h"
|
| #include "chrome/browser/chromeos/system/name_value_pairs_parser.h"
|
| #include "chrome/browser/chromeos/system/runtime_environment.h"
|
| +#include "chrome/common/chrome_version_info.h"
|
| #include "content/public/browser/browser_thread.h"
|
|
|
| using content::BrowserThread;
|
| @@ -151,6 +152,20 @@
|
| kMachineOSInfoDelim);
|
| GetNameValuePairsFromFile(&parser, FilePath(kVpdFile), kVpdEq, kVpdDelim);
|
|
|
| +#if defined(GOOGLE_CHROME_BUILD)
|
| + // TODO(kochi): This is for providing a channel information to
|
| + // chrome::VersionInfo::GetChannel()/GetVersionStringModifier(),
|
| + // but this is still late for some early customers such as
|
| + // prerender::ConfigurePrefetchAndPrerender() and
|
| + // ThreadWatcherList::ParseCommandLine().
|
| + // See http://crbug.com/107333 .
|
| + const char kChromeOSReleaseTrack[] = "CHROMEOS_RELEASE_TRACK";
|
| + std::string channel;
|
| + if (GetMachineStatistic(kChromeOSReleaseTrack, &channel)) {
|
| + chrome::VersionInfo::SetChannel(channel);
|
| + }
|
| +#endif
|
| +
|
| // Finished loading the statistics.
|
| on_statistics_loaded_.Signal();
|
| VLOG(1) << "Finished loading statistics";
|
|
|