| Index: chrome/browser/automation/testing_automation_provider.cc
|
| diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc
|
| index 9012d3c303f2b56ad4db74be2db2e81e3eab6b50..4b2f0aa4d28366d49d885f02c791fc23f8dd3cec 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;
|
|
|
|
|