From d1c458a237273c3804131db7fc9a55aa67af48b6 Mon Sep 17 00:00:00 2001 From: "nirnimesh@chromium.org" Date: Sun, 11 Jul 2010 06:48:40 +0000 Subject: Refactor json automation interface for pyauto hooks. Reduces the number of lines you need to add per new automation hook. Shaves off several lines of code. Refactor pyauto.py to obviate raising exception in case the json interfaces produces an error string. Review URL: http://codereview.chromium.org/2898001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52054 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/automation/automation_provider.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chrome/browser/automation/automation_provider.h') diff --git a/chrome/browser/automation/automation_provider.h b/chrome/browser/automation/automation_provider.h index d8e8d0b..0598179 100644 --- a/chrome/browser/automation/automation_provider.h +++ b/chrome/browser/automation/automation_provider.h @@ -463,11 +463,11 @@ class AutomationProvider : public base::RefCounted, // data structure used in the browser. // Args: // profiles/cards: the ListValue of profiles/credit cards to translate. - // json_return: a pointer to the return string in case of error. + // err_mesg: a pointer to the return string in case of error. static std::vector GetAutoFillProfilesFromList( - const ListValue& profiles, std::string* json_return); + const ListValue& profiles, std::string* err_mesg); static std::vector GetCreditCardsFromList( - const ListValue& cards, std::string* json_return); + const ListValue& cards, std::string* err_mesg); // The opposite of the above: translates from the internal data structure // for profiles and credit cards to a ListValue of DictionaryValues. The -- cgit v1.1