OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/chromeos/metrics_cros_settings_provider.h" | 5 #include "chrome/browser/chromeos/metrics_cros_settings_provider.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/chromeos/cros_settings.h" | 9 #include "chrome/browser/chromeos/cros_settings.h" |
10 #include "chrome/browser/chromeos/cros_settings_names.h" | 10 #include "chrome/browser/chromeos/cros_settings_names.h" |
11 #include "chrome/browser/chromeos/login/user_manager.h" | 11 #include "chrome/browser/chromeos/login/user_manager.h" |
12 #include "chrome/browser/options_util.h" | 12 #include "chrome/browser/ui/options/options_util.h" |
13 #include "chrome/installer/util/google_update_settings.h" | 13 #include "chrome/installer/util/google_update_settings.h" |
14 | 14 |
15 #if defined(USE_LINUX_BREAKPAD) | 15 #if defined(USE_LINUX_BREAKPAD) |
16 #include "chrome/app/breakpad_linux.h" | 16 #include "chrome/app/breakpad_linux.h" |
17 #endif | 17 #endif |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 | 20 |
21 void MetricsCrosSettingsProvider::DoSet(const std::string& path, | 21 void MetricsCrosSettingsProvider::DoSet(const std::string& path, |
22 Value* value) { | 22 Value* value) { |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 // static | 63 // static |
64 bool MetricsCrosSettingsProvider::GetMetricsStatus() { | 64 bool MetricsCrosSettingsProvider::GetMetricsStatus() { |
65 return GoogleUpdateSettings::GetCollectStatsConsent(); | 65 return GoogleUpdateSettings::GetCollectStatsConsent(); |
66 } | 66 } |
67 | 67 |
68 bool MetricsCrosSettingsProvider::HandlesSetting(const std::string& path) { | 68 bool MetricsCrosSettingsProvider::HandlesSetting(const std::string& path) { |
69 return ::StartsWithASCII(path, kStatsReportingPref, true); | 69 return ::StartsWithASCII(path, kStatsReportingPref, true); |
70 } | 70 } |
71 | 71 |
72 }; // namespace chromeos | 72 }; // namespace chromeos |
OLD | NEW |