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

Side by Side Diff: chrome/test/testing_pref_service.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/test/testing_pref_service.h" 5 #include "chrome/test/testing_pref_service.h"
6 6
7 #include "chrome/browser/dummy_pref_store.h" 7 #include "chrome/browser/prefs/dummy_pref_store.h"
8 #include "chrome/browser/pref_value_store.h" 8 #include "chrome/browser/prefs/pref_value_store.h"
9 9
10 TestingPrefService::TestingPrefValueStore::TestingPrefValueStore( 10 TestingPrefService::TestingPrefValueStore::TestingPrefValueStore(
11 PrefStore* managed_prefs, 11 PrefStore* managed_prefs,
12 PrefStore* extension_prefs, 12 PrefStore* extension_prefs,
13 PrefStore* command_line_prefs, 13 PrefStore* command_line_prefs,
14 PrefStore* user_prefs, 14 PrefStore* user_prefs,
15 PrefStore* recommended_prefs) 15 PrefStore* recommended_prefs)
16 : PrefValueStore(managed_prefs, extension_prefs, command_line_prefs, 16 : PrefValueStore(managed_prefs, extension_prefs, command_line_prefs,
17 user_prefs, recommended_prefs) { 17 user_prefs, recommended_prefs) {
18 } 18 }
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 Value* value) { 63 Value* value) {
64 pref_store->prefs()->Set(path, value); 64 pref_store->prefs()->Set(path, value);
65 pref_notifier()->FireObservers(path); 65 pref_notifier()->FireObservers(path);
66 } 66 }
67 67
68 void TestingPrefService::RemovePref(PrefStore* pref_store, 68 void TestingPrefService::RemovePref(PrefStore* pref_store,
69 const char* path) { 69 const char* path) {
70 pref_store->prefs()->Remove(path, NULL); 70 pref_store->prefs()->Remove(path, NULL);
71 pref_notifier()->FireObservers(path); 71 pref_notifier()->FireObservers(path);
72 } 72 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698