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

Side by Side Diff: chrome/browser/chromeos/cros_settings.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.h" 5 #include "chrome/browser/chromeos/cros_settings.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/chromeos/cros_settings_provider.h" 10 #include "chrome/browser/chromeos/cros_settings_provider.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 DCHECK(CalledOnValidThread()); 49 DCHECK(CalledOnValidThread());
50 CrosSettingsProvider* provider; 50 CrosSettingsProvider* provider;
51 provider = GetProvider(path); 51 provider = GetProvider(path);
52 if (provider) { 52 if (provider) {
53 provider->Set(path, in_value); 53 provider->Set(path, in_value);
54 } 54 }
55 } 55 }
56 56
57 void CrosSettings::SetBoolean(const std::string& path, bool in_value) { 57 void CrosSettings::SetBoolean(const std::string& path, bool in_value) {
58 DCHECK(CalledOnValidThread()); 58 DCHECK(CalledOnValidThread());
59 Set(path, Value::CreateBooleanValue(in_value)); 59 Set(path, base::BooleanValue::New(in_value));
60 } 60 }
61 61
62 void CrosSettings::SetInteger(const std::string& path, int in_value) { 62 void CrosSettings::SetInteger(const std::string& path, int in_value) {
63 DCHECK(CalledOnValidThread()); 63 DCHECK(CalledOnValidThread());
64 Set(path, Value::CreateIntegerValue(in_value)); 64 Set(path, base::NumberValue::New(in_value));
65 } 65 }
66 66
67 void CrosSettings::SetDouble(const std::string& path, double in_value) { 67 void CrosSettings::SetDouble(const std::string& path, double in_value) {
68 DCHECK(CalledOnValidThread()); 68 DCHECK(CalledOnValidThread());
69 Set(path, Value::CreateDoubleValue(in_value)); 69 Set(path, base::NumberValue::New(in_value));
70 } 70 }
71 71
72 void CrosSettings::SetString(const std::string& path, 72 void CrosSettings::SetString(const std::string& path,
73 const std::string& in_value) { 73 const std::string& in_value) {
74 DCHECK(CalledOnValidThread()); 74 DCHECK(CalledOnValidThread());
75 Set(path, Value::CreateStringValue(in_value)); 75 Set(path, base::StringValue::New(in_value));
76 } 76 }
77 77
78 bool CrosSettings::AddSettingsProvider(CrosSettingsProvider* provider) { 78 bool CrosSettings::AddSettingsProvider(CrosSettingsProvider* provider) {
79 DCHECK(CalledOnValidThread()); 79 DCHECK(CalledOnValidThread());
80 providers_.push_back(provider); 80 providers_.push_back(provider);
81 return true; 81 return true;
82 } 82 }
83 83
84 bool CrosSettings::RemoveSettingsProvider(CrosSettingsProvider* provider) { 84 bool CrosSettings::RemoveSettingsProvider(CrosSettingsProvider* provider) {
85 DCHECK(CalledOnValidThread()); 85 DCHECK(CalledOnValidThread());
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 } 203 }
204 204
205 CrosSettings::CrosSettings() { 205 CrosSettings::CrosSettings() {
206 } 206 }
207 207
208 CrosSettings::~CrosSettings() { 208 CrosSettings::~CrosSettings() {
209 DCHECK(providers_.empty()); 209 DCHECK(providers_.empty());
210 } 210 }
211 211
212 } // namespace chromeos 212 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/cros/network_library.cc ('k') | chrome/browser/chromeos/extensions/input_method_event_router.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698