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

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

Issue 13993021: SECTION_EMAIL -> section. Whoops. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after
2035 } 2035 }
2036 return true; 2036 return true;
2037 } 2037 }
2038 2038
2039 bool AutofillDialogControllerImpl::SectionIsValid( 2039 bool AutofillDialogControllerImpl::SectionIsValid(
2040 DialogSection section) const { 2040 DialogSection section) const {
2041 if (!IsManuallyEditingSection(section)) 2041 if (!IsManuallyEditingSection(section))
2042 return true; 2042 return true;
2043 2043
2044 DetailOutputMap detail_outputs; 2044 DetailOutputMap detail_outputs;
2045 view_->GetUserInput(SECTION_EMAIL, &detail_outputs); 2045 view_->GetUserInput(section, &detail_outputs);
2046 return InputsAreValid(detail_outputs, VALIDATE_EDIT).empty(); 2046 return InputsAreValid(detail_outputs, VALIDATE_EDIT).empty();
2047 } 2047 }
2048 2048
2049 bool AutofillDialogControllerImpl::ShouldUseBillingForShipping() { 2049 bool AutofillDialogControllerImpl::ShouldUseBillingForShipping() {
2050 return suggested_shipping_.GetItemKeyForCheckedItem() == kSameAsBillingKey; 2050 return suggested_shipping_.GetItemKeyForCheckedItem() == kSameAsBillingKey;
2051 } 2051 }
2052 2052
2053 bool AutofillDialogControllerImpl::ShouldSaveDetailsLocally() { 2053 bool AutofillDialogControllerImpl::ShouldSaveDetailsLocally() {
2054 // It's possible that the user checked [X] Save details locally before 2054 // It's possible that the user checked [X] Save details locally before
2055 // switching payment methods, so only ask the view whether to save details 2055 // switching payment methods, so only ask the view whether to save details
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2307 AutofillMetrics::DIALOG_USER_SIGNED_IN_NO_WALLET_NO_AUTOFILL; 2307 AutofillMetrics::DIALOG_USER_SIGNED_IN_NO_WALLET_NO_AUTOFILL;
2308 } 2308 }
2309 2309
2310 // Has Wallet items. 2310 // Has Wallet items.
2311 return has_autofill_profiles ? 2311 return has_autofill_profiles ?
2312 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_HAS_AUTOFILL : 2312 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_HAS_AUTOFILL :
2313 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_NO_AUTOFILL; 2313 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_NO_AUTOFILL;
2314 } 2314 }
2315 2315
2316 } // namespace autofill 2316 } // namespace autofill
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698