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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 7892048: Autofill: Remove fax number completely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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/automation/testing_automation_provider.h" 5 #include "chrome/browser/automation/testing_automation_provider.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 5040 matching lines...) Expand 10 before | Expand all | Expand 10 after
5051 autofill_type_to_string[ADDRESS_HOME_LINE2] = "ADDRESS_HOME_LINE2"; 5051 autofill_type_to_string[ADDRESS_HOME_LINE2] = "ADDRESS_HOME_LINE2";
5052 autofill_type_to_string[ADDRESS_HOME_CITY] = "ADDRESS_HOME_CITY"; 5052 autofill_type_to_string[ADDRESS_HOME_CITY] = "ADDRESS_HOME_CITY";
5053 autofill_type_to_string[ADDRESS_HOME_STATE] = "ADDRESS_HOME_STATE"; 5053 autofill_type_to_string[ADDRESS_HOME_STATE] = "ADDRESS_HOME_STATE";
5054 autofill_type_to_string[ADDRESS_HOME_ZIP] = "ADDRESS_HOME_ZIP"; 5054 autofill_type_to_string[ADDRESS_HOME_ZIP] = "ADDRESS_HOME_ZIP";
5055 autofill_type_to_string[ADDRESS_HOME_COUNTRY] = "ADDRESS_HOME_COUNTRY"; 5055 autofill_type_to_string[ADDRESS_HOME_COUNTRY] = "ADDRESS_HOME_COUNTRY";
5056 autofill_type_to_string[PHONE_HOME_COUNTRY_CODE] = 5056 autofill_type_to_string[PHONE_HOME_COUNTRY_CODE] =
5057 "PHONE_HOME_COUNTRY_CODE"; 5057 "PHONE_HOME_COUNTRY_CODE";
5058 autofill_type_to_string[PHONE_HOME_CITY_CODE] = "PHONE_HOME_CITY_CODE"; 5058 autofill_type_to_string[PHONE_HOME_CITY_CODE] = "PHONE_HOME_CITY_CODE";
5059 autofill_type_to_string[PHONE_HOME_WHOLE_NUMBER] = 5059 autofill_type_to_string[PHONE_HOME_WHOLE_NUMBER] =
5060 "PHONE_HOME_WHOLE_NUMBER"; 5060 "PHONE_HOME_WHOLE_NUMBER";
5061 autofill_type_to_string[PHONE_FAX_COUNTRY_CODE] = "PHONE_FAX_COUNTRY_CODE";
5062 autofill_type_to_string[PHONE_FAX_CITY_CODE] = "PHONE_FAX_CITY_CODE";
5063 autofill_type_to_string[PHONE_FAX_WHOLE_NUMBER] = "PHONE_FAX_WHOLE_NUMBER";
5064 return autofill_type_to_string; 5061 return autofill_type_to_string;
5065 } 5062 }
5066 5063
5067 /* static */ 5064 /* static */
5068 std::map<AutofillFieldType, std::string> 5065 std::map<AutofillFieldType, std::string>
5069 TestingAutomationProvider::GetCreditCardFieldToStringMap() { 5066 TestingAutomationProvider::GetCreditCardFieldToStringMap() {
5070 std::map<AutofillFieldType, std::string> credit_card_type_to_string; 5067 std::map<AutofillFieldType, std::string> credit_card_type_to_string;
5071 credit_card_type_to_string[CREDIT_CARD_NAME] = "CREDIT_CARD_NAME"; 5068 credit_card_type_to_string[CREDIT_CARD_NAME] = "CREDIT_CARD_NAME";
5072 credit_card_type_to_string[CREDIT_CARD_NUMBER] = "CREDIT_CARD_NUMBER"; 5069 credit_card_type_to_string[CREDIT_CARD_NUMBER] = "CREDIT_CARD_NUMBER";
5073 credit_card_type_to_string[CREDIT_CARD_EXP_MONTH] = "CREDIT_CARD_EXP_MONTH"; 5070 credit_card_type_to_string[CREDIT_CARD_EXP_MONTH] = "CREDIT_CARD_EXP_MONTH";
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
6338 IPC::ParamTraits<std::vector<GURL> >::Write(reply_message_, redirects_gurl); 6335 IPC::ParamTraits<std::vector<GURL> >::Write(reply_message_, redirects_gurl);
6339 6336
6340 Send(reply_message_); 6337 Send(reply_message_);
6341 redirect_query_ = 0; 6338 redirect_query_ = 0;
6342 reply_message_ = NULL; 6339 reply_message_ = NULL;
6343 } 6340 }
6344 6341
6345 void TestingAutomationProvider::OnRemoveProvider() { 6342 void TestingAutomationProvider::OnRemoveProvider() {
6346 AutomationProviderList::GetInstance()->RemoveProvider(this); 6343 AutomationProviderList::GetInstance()->RemoveProvider(this);
6347 } 6344 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698