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

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

Issue 839193002: Move ServiceAccessType into //components/keyed_service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on android Created 5 years, 11 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) 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/sync/test/integration/autofill_helper.h" 5 #include "chrome/browser/sync/test/integration/autofill_helper.h"
6 6
7 #include "chrome/browser/autofill/personal_data_manager_factory.h" 7 #include "chrome/browser/autofill/personal_data_manager_factory.h"
8 #include "chrome/browser/chrome_notification_types.h" 8 #include "chrome/browser/chrome_notification_types.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/sync/profile_sync_service.h" 10 #include "chrome/browser/sync/profile_sync_service.h"
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 autofill::test::SetProfileInfoWithGuid(&profile, 160 autofill::test::SetProfileInfoWithGuid(&profile,
161 "FE461507-7E13-4198-8E66-74C7DB6D8322", 161 "FE461507-7E13-4198-8E66-74C7DB6D8322",
162 "", "", "", "", "", "", "", "", "", "", "", ""); 162 "", "", "", "", "", "", "", "", "", "", "", "");
163 break; 163 break;
164 } 164 }
165 return profile; 165 return profile;
166 } 166 }
167 167
168 scoped_refptr<AutofillWebDataService> GetWebDataService(int index) { 168 scoped_refptr<AutofillWebDataService> GetWebDataService(int index) {
169 return WebDataServiceFactory::GetAutofillWebDataForProfile( 169 return WebDataServiceFactory::GetAutofillWebDataForProfile(
170 test()->GetProfile(index), Profile::EXPLICIT_ACCESS); 170 test()->GetProfile(index), ServiceAccessType::EXPLICIT_ACCESS);
171 } 171 }
172 172
173 PersonalDataManager* GetPersonalDataManager(int index) { 173 PersonalDataManager* GetPersonalDataManager(int index) {
174 return autofill::PersonalDataManagerFactory::GetForProfile( 174 return autofill::PersonalDataManagerFactory::GetForProfile(
175 test()->GetProfile(index)); 175 test()->GetProfile(index));
176 } 176 }
177 177
178 void AddKeys(int profile, const std::set<AutofillKey>& keys) { 178 void AddKeys(int profile, const std::set<AutofillKey>& keys) {
179 std::vector<FormFieldData> form_fields; 179 std::vector<FormFieldData> form_fields;
180 for (std::set<AutofillKey>::const_iterator i = keys.begin(); 180 for (std::set<AutofillKey>::const_iterator i = keys.begin();
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 489
490 } // namespace 490 } // namespace
491 491
492 bool AwaitProfilesMatch(int a, int b) { 492 bool AwaitProfilesMatch(int a, int b) {
493 ProfilesMatchStatusChecker checker(a, b); 493 ProfilesMatchStatusChecker checker(a, b);
494 checker.Wait(); 494 checker.Wait();
495 return !checker.TimedOut(); 495 return !checker.TimedOut();
496 } 496 }
497 497
498 } // namespace autofill_helper 498 } // namespace autofill_helper
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698