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

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

Issue 23495006: rAc: better Wallet error messages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self review Created 7 years, 4 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
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 3c3bcb010596f75eabcf6ffa67fa1d4acdbae093..c70a3eef3ded6a9bf3bd1a659d7a1358d2042fcf 100644
--- a/chrome/browser/ui/autofill/account_chooser_model.cc
+++ b/chrome/browser/ui/autofill/account_chooser_model.cc
@@ -34,6 +34,7 @@ AccountChooserModel::AccountChooserModel(
checked_item_(
prefs->GetBoolean(::prefs::kAutofillDialogPayWithoutWallet) ?
kAutofillItemId : kActiveWalletItemId),
+ wallet_error_(false),
metric_logger_(metric_logger),
dialog_type_(dialog_type) {
ReconstructMenuItems();
@@ -108,15 +109,15 @@ void AccountChooserModel::ExecuteCommand(int command_id, int event_flags) {
delegate_->AccountChoiceChanged();
}
-void AccountChooserModel::SetHadWalletError(const base::string16& message) {
+void AccountChooserModel::SetHadWalletError() {
// Any non-sign-in error disables all Wallet accounts.
- wallet_error_message_ = message;
+ wallet_error_ = true;
ClearActiveWalletAccountName();
ExecuteCommand(kAutofillItemId, 0);
}
bool AccountChooserModel::HadWalletError() const {
- return !wallet_error_message_.empty();
+ return wallet_error_;
}
void AccountChooserModel::SetHadWalletSigninError() {

Powered by Google App Engine
This is Rietveld 408576698