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

Side by Side Diff: chrome/browser/autofill/select_control_handler.cc

Issue 6676031: Autofill database migration to clean up bogus profiles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move to Lingesh's observer mechanism. Created 9 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/autofill/select_control_handler.h" 5 #include "chrome/browser/autofill/select_control_handler.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } else if (type.field_type() == ADDRESS_HOME_COUNTRY || 235 } else if (type.field_type() == ADDRESS_HOME_COUNTRY ||
236 type.field_type() == ADDRESS_BILLING_COUNTRY) { 236 type.field_type() == ADDRESS_BILLING_COUNTRY) {
237 FillCountrySelectControl(form_group, field); 237 FillCountrySelectControl(form_group, field);
238 } else if (type.field_type() == CREDIT_CARD_EXP_MONTH) { 238 } else if (type.field_type() == CREDIT_CARD_EXP_MONTH) {
239 FillExpirationMonthSelectControl(field_text, field); 239 FillExpirationMonthSelectControl(field_text, field);
240 } 240 }
241 241
242 return; 242 return;
243 } 243 }
244 244
245 bool IsValidState(string16 value) {
246 return !State::Abbreviation(value).empty() || !State::FullName(value).empty();
247 }
248
245 } // namespace autofill 249 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698