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

Side by Side Diff: chrome/browser/prefs/dummy_pref_store.cc

Issue 3203008: Move prefs-related files under chrome/browser/ into a prefs/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 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
OLDNEW
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/dummy_pref_store.h" 5 #include "chrome/browser/prefs/dummy_pref_store.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 8
9 DummyPrefStore::DummyPrefStore() 9 DummyPrefStore::DummyPrefStore()
10 : prefs_(new DictionaryValue()), 10 : prefs_(new DictionaryValue()),
11 read_only_(true), 11 read_only_(true),
12 prefs_written_(false) { } 12 prefs_written_(false) { }
13 13
14 PrefStore::PrefReadError DummyPrefStore::ReadPrefs() { 14 PrefStore::PrefReadError DummyPrefStore::ReadPrefs() {
15 prefs_.reset(new DictionaryValue()); 15 prefs_.reset(new DictionaryValue());
16 return PrefStore::PREF_READ_ERROR_NONE; 16 return PrefStore::PREF_READ_ERROR_NONE;
17 } 17 }
18 18
19 bool DummyPrefStore::WritePrefs() { 19 bool DummyPrefStore::WritePrefs() {
20 prefs_written_ = true; 20 prefs_written_ = true;
21 return prefs_written_; 21 return prefs_written_;
22 } 22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698