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 #include "components/autofill/core/browser/autofill_manager.h" | 5 #include "components/autofill/core/browser/autofill_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
277 registry->RegisterBooleanPref( | 277 registry->RegisterBooleanPref( |
278 prefs::kAutofillProfileUseDatesFixed, false, | 278 prefs::kAutofillProfileUseDatesFixed, false, |
279 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 279 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
280 registry->RegisterIntegerPref( | 280 registry->RegisterIntegerPref( |
281 prefs::kAutofillLastVersionDeduped, 0, | 281 prefs::kAutofillLastVersionDeduped, 0, |
282 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); | 282 user_prefs::PrefRegistrySyncable::SYNCABLE_PREF); |
283 // These choices are made on a per-device basis, so they're not syncable. | 283 // These choices are made on a per-device basis, so they're not syncable. |
284 registry->RegisterBooleanPref(prefs::kAutofillWalletImportEnabled, true); | 284 registry->RegisterBooleanPref(prefs::kAutofillWalletImportEnabled, true); |
285 registry->RegisterBooleanPref( | 285 registry->RegisterBooleanPref( |
286 prefs::kAutofillWalletImportStorageCheckboxState, true); | 286 prefs::kAutofillWalletImportStorageCheckboxState, true); |
287 registry->RegisterBooleanPref(prefs::kAutofillAcceptSaveCreditCardPromptState, | |
Mathieu
2017/04/26 14:31:17
you are starting with a default state that the use
csashi
2017/04/26 17:58:31
Done.
It seemed reasonable to assume that the boo
| |
288 true); | |
287 } | 289 } |
288 | 290 |
289 void AutofillManager::SetExternalDelegate(AutofillExternalDelegate* delegate) { | 291 void AutofillManager::SetExternalDelegate(AutofillExternalDelegate* delegate) { |
290 // TODO(jrg): consider passing delegate into the ctor. That won't | 292 // TODO(jrg): consider passing delegate into the ctor. That won't |
291 // work if the delegate has a pointer to the AutofillManager, but | 293 // work if the delegate has a pointer to the AutofillManager, but |
292 // future directions may not need such a pointer. | 294 // future directions may not need such a pointer. |
293 external_delegate_ = delegate; | 295 external_delegate_ = delegate; |
294 autocomplete_history_manager_->SetExternalDelegate(delegate); | 296 autocomplete_history_manager_->SetExternalDelegate(delegate); |
295 } | 297 } |
296 | 298 |
(...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2259 } | 2261 } |
2260 #endif // ENABLE_FORM_DEBUG_DUMP | 2262 #endif // ENABLE_FORM_DEBUG_DUMP |
2261 | 2263 |
2262 void AutofillManager::LogCardUploadDecisionUkm( | 2264 void AutofillManager::LogCardUploadDecisionUkm( |
2263 AutofillMetrics::CardUploadDecisionMetric upload_decision) { | 2265 AutofillMetrics::CardUploadDecisionMetric upload_decision) { |
2264 AutofillMetrics::LogCardUploadDecisionUkm( | 2266 AutofillMetrics::LogCardUploadDecisionUkm( |
2265 client_->GetUkmService(), pending_upload_request_url_, upload_decision); | 2267 client_->GetUkmService(), pending_upload_request_url_, upload_decision); |
2266 } | 2268 } |
2267 | 2269 |
2268 } // namespace autofill | 2270 } // namespace autofill |
OLD | NEW |