diff options
Diffstat (limited to 'chrome/browser/extensions/extension_test_api.cc')
-rw-r--r-- | chrome/browser/extensions/extension_test_api.cc | 6 |
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; } |