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

Unified Diff: chrome/browser/chromeos/system/statistics_provider.cc

Issue 10818031: Alternative GDrive promo for the File Manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Some tweaks Created 8 years, 5 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/chromeos/system/statistics_provider.cc
diff --git a/chrome/browser/chromeos/system/statistics_provider.cc b/chrome/browser/chromeos/system/statistics_provider.cc
index 28118635c75ba22ebcadc78211511a041f5f2bff..81bf2981efed803234e2e49286beb6f0326051c7 100644
--- a/chrome/browser/chromeos/system/statistics_provider.cc
+++ b/chrome/browser/chromeos/system/statistics_provider.cc
@@ -6,6 +6,7 @@
#include "base/bind.h"
#include "base/chromeos/chromeos_version.h"
+#include "base/command_line.h"
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/logging.h"
@@ -16,6 +17,7 @@
#include "base/chromeos/chromeos_version.h"
#include "chrome/browser/chromeos/system/name_value_pairs_parser.h"
#include "chrome/common/child_process_logging.h"
+#include "chrome/common/chrome_switches.h"
#include "chrome/common/chrome_version_info.h"
#include "content/public/browser/browser_thread.h"
@@ -210,6 +212,14 @@ class StatisticsProviderStubImpl : public StatisticsProvider {
// StatisticsProvider implementation:
virtual bool GetMachineStatistic(const std::string& name,
std::string* result) OVERRIDE {
+ if (name == "CHROMEOS_RELEASE_BOARD") {
+ const CommandLine* command_line = CommandLine::ForCurrentProcess();
+ if (command_line->HasSwitch(switches::kChromeOSReleaseBoard)) {
+ *result = command_line->
+ GetSwitchValueASCII(switches::kChromeOSReleaseBoard);
+ return true;
+ }
+ }
return false;
}

Powered by Google App Engine
This is Rietveld 408576698