| 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/cros_settings_provider_user.h" | 5 #include "chrome/browser/chromeos/cros_settings_provider_user.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_names.h" | 9 #include "chrome/browser/chromeos/cros_settings_names.h" |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 void UserCrosSettingsProvider::Set(const std::string& path, Value* in_value) { | 36 void UserCrosSettingsProvider::Set(const std::string& path, Value* in_value) { |
| 37 dict_->Set(path, in_value); | 37 dict_->Set(path, in_value); |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool UserCrosSettingsProvider::Get(const std::string& path, | 40 bool UserCrosSettingsProvider::Get(const std::string& path, |
| 41 Value** out_value) const { | 41 Value** out_value) const { |
| 42 return dict_->Get(path, out_value); | 42 return dict_->Get(path, out_value); |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool UserCrosSettingsProvider::HandlesSetting(const std::string& path) { | 45 bool UserCrosSettingsProvider::HandlesSetting(const std::string& path) { |
| 46 return ::StartsWithASCII(path, "cros.accounts", true); | 46 return ::StartsWithASCII(path, "cros.accounts.", true); |
| 47 } | 47 } |
| 48 | 48 |
| 49 } // namespace chromeos | 49 } // namespace chromeos |
| OLD | NEW |