| 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/threading/thread_restrictions.h" | 8 #include "base/threading/thread_restrictions.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/chromeos/cros_settings.h" | 10 #include "chrome/browser/chromeos/cros_settings.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // Temporarily allow it until we fix http://crbug.com/62626 | 74 // Temporarily allow it until we fix http://crbug.com/62626 |
| 75 base::ThreadRestrictions::ScopedAllowIO allow_io; | 75 base::ThreadRestrictions::ScopedAllowIO allow_io; |
| 76 return GoogleUpdateSettings::GetCollectStatsConsent(); | 76 return GoogleUpdateSettings::GetCollectStatsConsent(); |
| 77 } | 77 } |
| 78 | 78 |
| 79 bool MetricsCrosSettingsProvider::HandlesSetting(const std::string& path) { | 79 bool MetricsCrosSettingsProvider::HandlesSetting(const std::string& path) { |
| 80 return ::StartsWithASCII(path, kStatsReportingPref, true); | 80 return ::StartsWithASCII(path, kStatsReportingPref, true); |
| 81 } | 81 } |
| 82 | 82 |
| 83 }; // namespace chromeos | 83 }; // namespace chromeos |
| OLD | NEW |