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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chromeos/system/fake_statistics_provider.h"
6
7 namespace chromeos {
8 namespace system {
9
10 void FakeStatisticsProvider::StartLoadingMachineStatistics(
11 const scoped_refptr<base::TaskRunner>& file_task_runner,
12 bool load_oem_manifest) {
13 }
14
15 bool FakeStatisticsProvider::GetMachineFlag(const std::string& name,
16 bool* result) {
17 return false;
18 }
19
20 bool FakeStatisticsProvider::GetMachineStatistic(const std::string& name,
21 std::string* result) {
22 if (name == "initial_locale")
23 *result = initial_locale_;
24 else if (name == "keyboard_layout")
25 *result = keyboard_layout_;
26 else
27 return false;
28
29 return true;
30 }
31
32 void FakeStatisticsProvider::Shutdown() {
33 }
34
35 } // namespace system
36 } // namespace chromeos
OLDNEW
« 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