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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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_change_registrar.h"
8 #include "base/prefs/pref_service.h"
9 #include "base/prefs/scoped_user_pref_update.h"
10 #include "base/strings/stringprintf.h" 7 #include "base/strings/stringprintf.h"
11 #include "chrome/browser/profiles/profile.h" 8 #include "chrome/browser/profiles/profile.h"
12 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke r.h" 9 #include "chrome/browser/sync/test/integration/multi_client_status_change_checke r.h"
13 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" 10 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h"
14 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h" 11 #include "chrome/browser/sync/test/integration/sync_datatype_helper.h"
15 #include "chrome/browser/sync/test/integration/sync_test.h" 12 #include "chrome/browser/sync/test/integration/sync_test.h"
13 #include "components/prefs/pref_change_registrar.h"
14 #include "components/prefs/pref_service.h"
15 #include "components/prefs/scoped_user_pref_update.h"
16 16
17 using sync_datatype_helper::test; 17 using sync_datatype_helper::test;
18 18
19 namespace preferences_helper { 19 namespace preferences_helper {
20 20
21 PrefService* GetPrefs(int index) { 21 PrefService* GetPrefs(int index) {
22 return test()->GetProfile(index)->GetPrefs(); 22 return test()->GetProfile(index)->GetPrefs();
23 } 23 }
24 24
25 PrefService* GetVerifierPrefs() { 25 PrefService* GetVerifierPrefs() {
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 return !checker.TimedOut(); 378 return !checker.TimedOut();
379 } 379 }
380 380
381 bool AwaitStringPrefMatches(const char* pref_name) { 381 bool AwaitStringPrefMatches(const char* pref_name) {
382 StringPrefMatchChecker checker(pref_name); 382 StringPrefMatchChecker checker(pref_name);
383 checker.Wait(); 383 checker.Wait();
384 return !checker.TimedOut(); 384 return !checker.TimedOut();
385 } 385 }
386 386
387 } // namespace preferences_helper 387 } // namespace preferences_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698