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

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: Uses no-suffix, 'PreviouslyAccepted' and 'PreviouslyDenied' for the save card prompt histograms. 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->RegisterIntegerPref(
288 prefs::kAutofillAcceptSaveCreditCardPromptState,
289 prefs::PREVIOUS_SAVE_CREDIT_CARD_PROMPT_USER_DECISION_NONE);
287 } 290 }
288 291
289 void AutofillManager::SetExternalDelegate(AutofillExternalDelegate* delegate) { 292 void AutofillManager::SetExternalDelegate(AutofillExternalDelegate* delegate) {
290 // TODO(jrg): consider passing delegate into the ctor. That won't 293 // TODO(jrg): consider passing delegate into the ctor. That won't
291 // work if the delegate has a pointer to the AutofillManager, but 294 // work if the delegate has a pointer to the AutofillManager, but
292 // future directions may not need such a pointer. 295 // future directions may not need such a pointer.
293 external_delegate_ = delegate; 296 external_delegate_ = delegate;
294 autocomplete_history_manager_->SetExternalDelegate(delegate); 297 autocomplete_history_manager_->SetExternalDelegate(delegate);
295 } 298 }
296 299
(...skipping 1962 matching lines...) Expand 10 before | Expand all | Expand 10 after
2259 } 2262 }
2260 #endif // ENABLE_FORM_DEBUG_DUMP 2263 #endif // ENABLE_FORM_DEBUG_DUMP
2261 2264
2262 void AutofillManager::LogCardUploadDecisionUkm( 2265 void AutofillManager::LogCardUploadDecisionUkm(
2263 AutofillMetrics::CardUploadDecisionMetric upload_decision) { 2266 AutofillMetrics::CardUploadDecisionMetric upload_decision) {
2264 AutofillMetrics::LogCardUploadDecisionUkm( 2267 AutofillMetrics::LogCardUploadDecisionUkm(
2265 client_->GetUkmService(), pending_upload_request_url_, upload_decision); 2268 client_->GetUkmService(), pending_upload_request_url_, upload_decision);
2266 } 2269 }
2267 2270
2268 } // namespace autofill 2271 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698