| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/prefs/testing_pref_store.h" | 5 #include "chrome/browser/prefs/testing_pref_store.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" |
| 7 #include "base/values.h" | 8 #include "base/values.h" |
| 8 | 9 |
| 9 TestingPrefStore::TestingPrefStore() | 10 TestingPrefStore::TestingPrefStore() |
| 10 : read_only_(true), | 11 : read_only_(true), |
| 11 prefs_written_(false), | 12 prefs_written_(false), |
| 12 init_complete_(false) { | 13 init_complete_(false) { |
| 13 } | 14 } |
| 14 | 15 |
| 15 PrefStore::ReadResult TestingPrefStore::GetValue(const std::string& key, | 16 PrefStore::ReadResult TestingPrefStore::GetValue(const std::string& key, |
| 16 const Value** value) const { | 17 const Value** value) const { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 return false; | 129 return false; |
| 129 | 130 |
| 130 return stored_value->GetAsBoolean(value); | 131 return stored_value->GetAsBoolean(value); |
| 131 } | 132 } |
| 132 | 133 |
| 133 void TestingPrefStore::set_read_only(bool read_only) { | 134 void TestingPrefStore::set_read_only(bool read_only) { |
| 134 read_only_ = read_only; | 135 read_only_ = read_only; |
| 135 } | 136 } |
| 136 | 137 |
| 137 TestingPrefStore::~TestingPrefStore() {} | 138 TestingPrefStore::~TestingPrefStore() {} |
| OLD | NEW |