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

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_controller_impl.cc

Issue 22342006: rAc: Update some strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 793
794 return SIGNED_IN; 794 return SIGNED_IN;
795 } 795 }
796 796
797 bool AutofillDialogControllerImpl::ShouldShowSpinner() const { 797 bool AutofillDialogControllerImpl::ShouldShowSpinner() const {
798 return account_chooser_model_.WalletIsSelected() && 798 return account_chooser_model_.WalletIsSelected() &&
799 SignedInState() == REQUIRES_RESPONSE; 799 SignedInState() == REQUIRES_RESPONSE;
800 } 800 }
801 801
802 string16 AutofillDialogControllerImpl::AccountChooserText() const { 802 string16 AutofillDialogControllerImpl::AccountChooserText() const {
803 // TODO(aruslan): this should be l10n "Not using Google Wallet".
804 if (!account_chooser_model_.WalletIsSelected()) 803 if (!account_chooser_model_.WalletIsSelected())
805 return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_PAY_WITHOUT_WALLET); 804 return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_PAYING_WITHOUT_WALLET);
806 805
807 if (SignedInState() == SIGNED_IN) 806 if (SignedInState() == SIGNED_IN)
808 return account_chooser_model_.active_wallet_account_name(); 807 return account_chooser_model_.active_wallet_account_name();
809 808
810 // In this case, the account chooser should be showing the signin link. 809 // In this case, the account chooser should be showing the signin link.
811 return string16(); 810 return string16();
812 } 811 }
813 812
814 string16 AutofillDialogControllerImpl::SignInLinkText() const { 813 string16 AutofillDialogControllerImpl::SignInLinkText() const {
815 return l10n_util::GetStringUTF16( 814 return l10n_util::GetStringUTF16(
816 signin_registrar_.IsEmpty() ? IDS_AUTOFILL_DIALOG_SIGN_IN : 815 signin_registrar_.IsEmpty() ? IDS_AUTOFILL_DIALOG_SIGN_IN :
817 IDS_AUTOFILL_DIALOG_PAY_WITHOUT_WALLET); 816 IDS_AUTOFILL_DIALOG_CANCEL_SIGN_IN);
818 } 817 }
819 818
820 bool AutofillDialogControllerImpl::ShouldOfferToSaveInChrome() const { 819 bool AutofillDialogControllerImpl::ShouldOfferToSaveInChrome() const {
821 return !IsPayingWithWallet() && 820 return !IsPayingWithWallet() &&
822 !profile_->IsOffTheRecord() && 821 !profile_->IsOffTheRecord() &&
823 IsManuallyEditingAnySection() && 822 IsManuallyEditingAnySection() &&
824 ShouldShowDetailArea(); 823 ShouldShowDetailArea();
825 } 824 }
826 825
827 int AutofillDialogControllerImpl::GetDialogButtons() const { 826 int AutofillDialogControllerImpl::GetDialogButtons() const {
(...skipping 2669 matching lines...) Expand 10 before | Expand all | Expand 10 after
3497 view_->GetUserInput(SECTION_CC_BILLING, &output); 3496 view_->GetUserInput(SECTION_CC_BILLING, &output);
3498 CreditCard card; 3497 CreditCard card;
3499 GetBillingInfoFromOutputs(output, &card, NULL, NULL); 3498 GetBillingInfoFromOutputs(output, &card, NULL, NULL);
3500 backing_last_four = card.TypeAndLastFourDigits(); 3499 backing_last_four = card.TypeAndLastFourDigits();
3501 } 3500 }
3502 AutofillCreditCardBubbleController::ShowGeneratedCardUI( 3501 AutofillCreditCardBubbleController::ShowGeneratedCardUI(
3503 web_contents(), backing_last_four, full_wallet_->TypeAndLastFourDigits()); 3502 web_contents(), backing_last_four, full_wallet_->TypeAndLastFourDigits());
3504 } 3503 }
3505 3504
3506 } // namespace autofill 3505 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698