OLD | NEW |
(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 |
OLD | NEW |