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

Side by Side Diff: components/autofill/core/browser/autofill_manager.cc

Issue 2839683002: Logs different SaveCardPrompt histogram names depending on if user (Closed)
Patch Set: Android compile error. Created 3 years, 8 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 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
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,
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 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after
2248 } 2250 }
2249 #endif // ENABLE_FORM_DEBUG_DUMP 2251 #endif // ENABLE_FORM_DEBUG_DUMP
2250 2252
2251 void AutofillManager::LogCardUploadDecisionUkm( 2253 void AutofillManager::LogCardUploadDecisionUkm(
2252 AutofillMetrics::CardUploadDecisionMetric upload_decision) { 2254 AutofillMetrics::CardUploadDecisionMetric upload_decision) {
2253 AutofillMetrics::LogCardUploadDecisionUkm( 2255 AutofillMetrics::LogCardUploadDecisionUkm(
2254 client_->GetUkmService(), pending_upload_request_url_, upload_decision); 2256 client_->GetUkmService(), pending_upload_request_url_, upload_decision);
2255 } 2257 }
2256 2258
2257 } // namespace autofill 2259 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698