OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 | 212 |
213 // The number of times that the access address book prompt was shown. | 213 // The number of times that the access address book prompt was shown. |
214 int AccessAddressBookPromptCount(); | 214 int AccessAddressBookPromptCount(); |
215 | 215 |
216 // The Chrome binary is in the process of being changed, or has been changed. | 216 // The Chrome binary is in the process of being changed, or has been changed. |
217 // Future attempts to access the Address Book might incorrectly present a | 217 // Future attempts to access the Address Book might incorrectly present a |
218 // blocking dialog. | 218 // blocking dialog. |
219 void BinaryChanging(); | 219 void BinaryChanging(); |
220 #endif // defined(OS_MACOSX) && !defined(OS_IOS) | 220 #endif // defined(OS_MACOSX) && !defined(OS_IOS) |
221 | 221 |
| 222 // Returns true if the wallet integration feature is enabled. Note that the |
| 223 // feature can still disabled by a user pref. |
| 224 bool IsExperimentalWalletIntegrationEnabled() const; |
| 225 |
222 protected: | 226 protected: |
223 // Only PersonalDataManagerFactory and certain tests can create instances of | 227 // Only PersonalDataManagerFactory and certain tests can create instances of |
224 // PersonalDataManager. | 228 // PersonalDataManager. |
225 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast); | 229 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, FirstMiddleLast); |
226 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup); | 230 FRIEND_TEST_ALL_PREFIXES(AutofillMetricsTest, AutofillIsEnabledAtStartup); |
227 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, | 231 FRIEND_TEST_ALL_PREFIXES(PersonalDataManagerTest, |
228 AggregateExistingAuxiliaryProfile); | 232 AggregateExistingAuxiliaryProfile); |
229 friend class autofill::AutofillInteractiveTest; | 233 friend class autofill::AutofillInteractiveTest; |
230 friend class autofill::AutofillTest; | 234 friend class autofill::AutofillTest; |
231 friend class autofill::PersonalDataManagerFactory; | 235 friend class autofill::PersonalDataManagerFactory; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 | 364 |
361 // An observer to listen for changes to prefs::kAutofillEnabled. | 365 // An observer to listen for changes to prefs::kAutofillEnabled. |
362 scoped_ptr<BooleanPrefMember> enabled_pref_; | 366 scoped_ptr<BooleanPrefMember> enabled_pref_; |
363 | 367 |
364 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); | 368 DISALLOW_COPY_AND_ASSIGN(PersonalDataManager); |
365 }; | 369 }; |
366 | 370 |
367 } // namespace autofill | 371 } // namespace autofill |
368 | 372 |
369 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ | 373 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PERSONAL_DATA_MANAGER_H_ |
OLD | NEW |