OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "chrome/browser/prefs/default_pref_store.h" |
| 6 |
| 7 DefaultPrefStore::DefaultPrefStore() {} |
| 8 |
| 9 DefaultPrefStore::~DefaultPrefStore() {} |
| 10 |
| 11 void DefaultPrefStore::SetDefaultValue(const std::string& key, Value* value) { |
| 12 CHECK(GetValue(key, NULL) == READ_NO_VALUE); |
| 13 SetValue(key, value); |
| 14 } |
| 15 |
| 16 Value::ValueType DefaultPrefStore::GetType(const std::string& key) const { |
| 17 Value* value; |
| 18 return GetValue(key, &value) == READ_OK ? value->GetType() |
| 19 : Value::TYPE_NULL; |
| 20 } |
OLD | NEW |