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

Unified Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 6247007: Fix autofill pyauto tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698