Index: chromeos/system/fake_statistics_provider.cc |
diff --git a/chromeos/system/fake_statistics_provider.cc b/chromeos/system/fake_statistics_provider.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ec2c2c3e63fd65225ee8e15b3ad7090cc937f407 |
--- /dev/null |
+++ b/chromeos/system/fake_statistics_provider.cc |
@@ -0,0 +1,36 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chromeos/system/fake_statistics_provider.h" |
+ |
+namespace chromeos { |
+namespace system { |
+ |
+void FakeStatisticsProvider::StartLoadingMachineStatistics( |
+ const scoped_refptr<base::TaskRunner>& file_task_runner, |
+ bool load_oem_manifest) { |
+} |
+ |
+bool FakeStatisticsProvider::GetMachineFlag(const std::string& name, |
+ bool* result) { |
+ return false; |
+} |
+ |
+bool FakeStatisticsProvider::GetMachineStatistic(const std::string& name, |
+ std::string* result) { |
+ if (name == "initial_locale") |
+ *result = initial_locale_; |
+ else if (name == "keyboard_layout") |
+ *result = keyboard_layout_; |
+ else |
+ return false; |
+ |
+ return true; |
+} |
+ |
+void FakeStatisticsProvider::Shutdown() { |
+} |
+ |
+} // namespace system |
+} // namespace chromeos |