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

Unified Diff: chrome/browser/ui/autofill/account_chooser_model.cc

Issue 15871004: Handle failed signin when setting kAutofillDialogPayWithoutWallet pref. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: upload keeps failing Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/autofill/account_chooser_model.cc
diff --git a/chrome/browser/ui/autofill/account_chooser_model.cc b/chrome/browser/ui/autofill/account_chooser_model.cc
index daf73d20f14e3f009d2866ce62e47b0ae912f56d..299ad40d0cfa0d73a834023bf0346fee832e3397 100644
--- a/chrome/browser/ui/autofill/account_chooser_model.cc
+++ b/chrome/browser/ui/autofill/account_chooser_model.cc
@@ -91,20 +91,20 @@ void AccountChooserModel::ExecuteCommand(int command_id, int event_flags) {
return;
// Log metrics.
- AutofillMetrics::DialogUiEvent chooser_event;
- if (command_id == kAutofillItemId) {
- chooser_event =
- AutofillMetrics::DIALOG_UI_ACCOUNT_CHOOSER_SWITCHED_TO_AUTOFILL;
- } else if (checked_item_ == kAutofillItemId) {
- chooser_event =
- AutofillMetrics::DIALOG_UI_ACCOUNT_CHOOSER_SWITCHED_TO_WALLET;
- } else {
- chooser_event =
- AutofillMetrics::DIALOG_UI_ACCOUNT_CHOOSER_SWITCHED_WALLET_ACCOUNT;
- }
- metric_logger_.LogDialogUiEvent(dialog_type_, chooser_event);
-
- checked_item_ = command_id;
+ AutofillMetrics::DialogUiEvent chooser_event;
+ if (command_id == kAutofillItemId) {
+ chooser_event =
+ AutofillMetrics::DIALOG_UI_ACCOUNT_CHOOSER_SWITCHED_TO_AUTOFILL;
+ } else if (checked_item_ == kAutofillItemId) {
+ chooser_event =
+ AutofillMetrics::DIALOG_UI_ACCOUNT_CHOOSER_SWITCHED_TO_WALLET;
+ } else {
+ chooser_event =
+ AutofillMetrics::DIALOG_UI_ACCOUNT_CHOOSER_SWITCHED_WALLET_ACCOUNT;
+ }
+ metric_logger_.LogDialogUiEvent(dialog_type_, chooser_event);
+
+ checked_item_ = command_id;
ReconstructMenuItems();
delegate_->AccountChoiceChanged();
}
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_controller_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698