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

Side by Side Diff: chrome/browser/sync/test/integration/preferences_helper.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 years, 10 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/sync/test/integration/preferences_helper.h" 5 #include "chrome/browser/sync/test/integration/preferences_helper.h"
6 6
7 #include "base/prefs/pref_service.h"
7 #include "base/values.h" 8 #include "base/values.h"
8 #include "chrome/browser/prefs/pref_service.h"
9 #include "chrome/browser/prefs/scoped_user_pref_update.h" 9 #include "chrome/browser/prefs/scoped_user_pref_update.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/sync/profile_sync_service_harness.h" 11 #include "chrome/browser/sync/profile_sync_service_harness.h"
12 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
12 #include "chrome/browser/sync/test/integration/sync_test.h" 13 #include "chrome/browser/sync/test/integration/sync_test.h"
13 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
14 14
15 using sync_datatype_helper::test; 15 using sync_datatype_helper::test;
16 16
17 namespace preferences_helper { 17 namespace preferences_helper {
18 18
19 PrefService* GetPrefs(int index) { 19 PrefService* GetPrefs(int index) {
20 return test()->GetProfile(index)->GetPrefs(); 20 return test()->GetProfile(index)->GetPrefs();
21 } 21 }
22 22
23 PrefService* GetVerifierPrefs() { 23 PrefService* GetVerifierPrefs() {
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 if (!reference_value->Equals(GetPrefs(i)->GetList(pref_name))) { 210 if (!reference_value->Equals(GetPrefs(i)->GetList(pref_name))) {
211 LOG(ERROR) << "List preference " << pref_name << " mismatched in" 211 LOG(ERROR) << "List preference " << pref_name << " mismatched in"
212 << " profile " << i << "."; 212 << " profile " << i << ".";
213 return false; 213 return false;
214 } 214 }
215 } 215 }
216 return true; 216 return true;
217 } 217 }
218 218
219 } // namespace preferences_helper 219 } // namespace preferences_helper
OLDNEW
« no previous file with comments | « chrome/browser/sync/sync_ui_util.cc ('k') | chrome/browser/sync/test/integration/sync_errors_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698