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

Unified Diff: chromeos/system/fake_statistics_provider.cc

Issue 598023006: Add browser test for initial languages. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update after review. Created 6 years, 2 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: 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
« chromeos/system/fake_statistics_provider.h ('K') | « chromeos/system/fake_statistics_provider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698