diff options
author | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-15 00:05:12 +0000 |
---|---|---|
committer | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-15 00:05:12 +0000 |
commit | 80ece4b0ee41cba5e00ab7d582c4d1373e982e1c (patch) | |
tree | 48d1ea613e822b9d06aaa294c4e1f1b6905cbbd2 /chrome/browser/automation | |
parent | 676126f7e4583705e6a381e1b35309ea8242c224 (diff) | |
download | chromium_src-80ece4b0ee41cba5e00ab7d582c4d1373e982e1c.zip chromium_src-80ece4b0ee41cba5e00ab7d582c4d1373e982e1c.tar.gz chromium_src-80ece4b0ee41cba5e00ab7d582c4d1373e982e1c.tar.bz2 |
Fix autofill pyauto tests
Some missing args in FillAutofillProfile() automation call are expected. Do not check for them.
Review URL: http://codereview.chromium.org/6247007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71518 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation')
-rw-r--r-- | chrome/browser/automation/testing_automation_provider.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc index 9012d3c..4b2f0aa 100644 --- a/chrome/browser/automation/testing_automation_provider.cc +++ b/chrome/browser/automation/testing_automation_provider.cc @@ -3774,15 +3774,9 @@ void TestingAutomationProvider::FillAutoFillProfile( ListValue* profiles = NULL; ListValue* cards = NULL; - if (!args->GetList("profiles", &profiles)) { - reply.SendError("Invalid or missing profiles list"); - return; - } - - if (!args->GetList("credit_cards", &cards)) { - reply.SendError("Invalid or missing credit_cards list"); - return; - } + // It's ok for profiles/credit_cards elements to be missing. + args->GetList("profiles", &profiles); + args->GetList("credit_cards", &cards); std::string error_mesg; |