summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_test_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/extension_test_api.cc')
-rw-r--r--chrome/browser/extensions/extension_test_api.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_test_api.cc b/chrome/browser/extensions/extension_test_api.cc
index ac0a2eb..48323d4 100644
--- a/chrome/browser/extensions/extension_test_api.cc
+++ b/chrome/browser/extensions/extension_test_api.cc
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/extensions/extension_test_api.h"
+
+#include "chrome/browser/browser.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/extensions/extensions_service.h"
#include "chrome/browser/extensions/extensions_quota_service.h"
-#include "chrome/browser/extensions/extension_test_api.h"
#include "chrome/common/notification_service.h"
bool ExtensionTestPassFunction::RunImpl() {
@@ -41,3 +43,10 @@ bool ExtensionTestQuotaResetFunction::RunImpl() {
quota->violators_.clear();
return true;
}
+
+bool ExtensionTestCreateIncognitoTabFunction::RunImpl() {
+ std::string url;
+ EXTENSION_FUNCTION_VALIDATE(args_->GetAsString(&url));
+ Browser::OpenURLOffTheRecord(profile(), GURL(url));
+ return true;
+}