summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_test_api.cc
diff options
context:
space:
mode:
authorarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-21 23:30:15 +0000
committerarv@chromium.org <arv@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-21 23:30:15 +0000
commit438c97d23785f28465304e1cb521b5125e9ea469 (patch)
tree5bc5c6ae6c72b9c8567c13a0b32d491b25e81f88 /chrome/browser/extensions/extension_test_api.cc
parent69e297f187425f2b31db37bfe51af86f28c38275 (diff)
downloadchromium_src-438c97d23785f28465304e1cb521b5125e9ea469.zip
chromium_src-438c97d23785f28465304e1cb521b5125e9ea469.tar.gz
chromium_src-438c97d23785f28465304e1cb521b5125e9ea469.tar.bz2
Update extension functions to always pass a list of arguments, even when one argument was passed.
BUG=36301 TEST=Updated tests and ran all the existing tests. Review URL: http://codereview.chromium.org/2137012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47972 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_test_api.cc')
-rw-r--r--chrome/browser/extensions/extension_test_api.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/extensions/extension_test_api.cc b/chrome/browser/extensions/extension_test_api.cc
index 48323d4..e5ae650 100644
--- a/chrome/browser/extensions/extension_test_api.cc
+++ b/chrome/browser/extensions/extension_test_api.cc
@@ -20,7 +20,7 @@ bool ExtensionTestPassFunction::RunImpl() {
bool ExtensionTestFailFunction::RunImpl() {
std::string message;
- EXTENSION_FUNCTION_VALIDATE(args_->GetAsString(&message));
+ EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &message));
NotificationService::current()->Notify(
NotificationType::EXTENSION_TEST_FAILED,
Source<Profile>(dispatcher()->profile()),
@@ -30,7 +30,7 @@ bool ExtensionTestFailFunction::RunImpl() {
bool ExtensionTestLogFunction::RunImpl() {
std::string message;
- EXTENSION_FUNCTION_VALIDATE(args_->GetAsString(&message));
+ EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &message));
printf("%s\n", message.c_str());
LOG(INFO) << message;
return true;
@@ -46,7 +46,7 @@ bool ExtensionTestQuotaResetFunction::RunImpl() {
bool ExtensionTestCreateIncognitoTabFunction::RunImpl() {
std::string url;
- EXTENSION_FUNCTION_VALIDATE(args_->GetAsString(&url));
+ EXTENSION_FUNCTION_VALIDATE(args_->GetString(0, &url));
Browser::OpenURLOffTheRecord(profile(), GURL(url));
return true;
}