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

Side by Side Diff: chrome/browser/autofill/personal_data_manager.h

Issue 10855253: Convert the autofill pyauto tests to browser tests, and remove all the supporting automation hooks … (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
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 #ifndef CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_
6 #define CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ 6 #define CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 const std::vector<AutofillProfile*>& existing_profiles, 141 const std::vector<AutofillProfile*>& existing_profiles,
142 std::vector<AutofillProfile>* merged_profiles); 142 std::vector<AutofillProfile>* merged_profiles);
143 143
144 protected: 144 protected:
145 // Only PersonalDataManagerFactory and certain tests can create instances of 145 // Only PersonalDataManagerFactory and certain tests can create instances of
146 // PersonalDataManager. 146 // PersonalDataManager.
147 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast); 147 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast);
148 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup); 148 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup);
149 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, 149 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest,
150 AggregateExistingAuxiliaryProfile); 150 AggregateExistingAuxiliaryProfile);
151 friend class AutofillTest;
151 friend class PersonalDataManagerFactory; 152 friend class PersonalDataManagerFactory;
152 friend class PersonalDataManagerTest; 153 friend class PersonalDataManagerTest;
153 friend class scoped_ptr<PersonalDataManager>; 154 friend class scoped_ptr<PersonalDataManager>;
154 friend class ProfileSyncServiceAutofillTest; 155 friend class ProfileSyncServiceAutofillTest;
155 friend class TestingAutomationProvider; 156 friend class TestingAutomationProvider;
156 friend void autofill_helper::SetProfiles(int, std::vector<AutofillProfile>*); 157 friend void autofill_helper::SetProfiles(int, std::vector<AutofillProfile>*);
157 158
158 PersonalDataManager(); 159 PersonalDataManager();
159 virtual ~PersonalDataManager(); 160 virtual ~PersonalDataManager();
160 161
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 // Whether we have already logged the number of profiles this session. 254 // Whether we have already logged the number of profiles this session.
254 mutable bool has_logged_profile_count_; 255 mutable bool has_logged_profile_count_;
255 256
256 // Manages registration lifetime for NotificationObserver implementation. 257 // Manages registration lifetime for NotificationObserver implementation.
257 content::NotificationRegistrar notification_registrar_; 258 content::NotificationRegistrar notification_registrar_;
258 259
259 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); 260 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
260 }; 261 };
261 262
262 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_ 263 #endif // CHROME_BROWSER_AUTOFILL_PERSONAL_DATA_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698