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

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

Issue 11818006: requestAutocomplete: move billing/shipping checkbox to shipping section (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 7 years, 11 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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.h" 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_split.h" 8 #include "base/string_split.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 kFakeSite, 233 kFakeSite,
234 &pieces); 234 &pieces);
235 return std::make_pair(pieces[0], pieces[1]); 235 return std::make_pair(pieces[0], pieces[1]);
236 } 236 }
237 237
238 string16 AutofillDialogController::LabelForSection(DialogSection section) 238 string16 AutofillDialogController::LabelForSection(DialogSection section)
239 const { 239 const {
240 switch (section) { 240 switch (section) {
241 case SECTION_EMAIL: 241 case SECTION_EMAIL:
242 return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_SECTION_EMAIL); 242 return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_SECTION_EMAIL);
243 case SECTION_CC:
244 return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_SECTION_CC);
243 case SECTION_BILLING: 245 case SECTION_BILLING:
244 return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_SECTION_BILLING); 246 return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_SECTION_BILLING);
245 case SECTION_SHIPPING: 247 case SECTION_SHIPPING:
246 return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_SECTION_SHIPPING); 248 return l10n_util::GetStringUTF16(IDS_AUTOFILL_DIALOG_SECTION_SHIPPING);
247 default: 249 default:
248 NOTREACHED(); 250 NOTREACHED();
249 return string16(); 251 return string16();
250 } 252 }
251 } 253 }
252 254
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 607
606 DCHECK_EQ(&model, &suggested_shipping_); 608 DCHECK_EQ(&model, &suggested_shipping_);
607 return SECTION_SHIPPING; 609 return SECTION_SHIPPING;
608 } 610 }
609 611
610 PersonalDataManager* AutofillDialogController::GetManager() { 612 PersonalDataManager* AutofillDialogController::GetManager() {
611 return PersonalDataManagerFactory::GetForProfile(profile_); 613 return PersonalDataManagerFactory::GetForProfile(profile_);
612 } 614 }
613 615
614 } // namespace autofill 616 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/views/autofill/autofill_dialog_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698