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

Unified Diff: chrome/browser/extensions/platform_app_browsertest_util.cc

Issue 10915047: Links in platform apps should open in the system default browser. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: refine the patch according to Mihaip's comment. Created 8 years, 2 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
Index: chrome/browser/extensions/platform_app_browsertest_util.cc
diff --git a/chrome/browser/extensions/platform_app_browsertest_util.cc b/chrome/browser/extensions/platform_app_browsertest_util.cc
index a722eb590f43465756c4dcc0d13fa7a596aad27a..fbfee5ef08c81de6c6451fc814a1ee713ea9f122 100644
--- a/chrome/browser/extensions/platform_app_browsertest_util.cc
+++ b/chrome/browser/extensions/platform_app_browsertest_util.cc
@@ -27,6 +27,12 @@ void PlatformAppBrowserTest::SetUpCommandLine(CommandLine* command_line) {
command_line->AppendSwitch(switches::kEnableExperimentalExtensionApis);
}
+void PlatformAppBrowserTest::SetUpOnMainThread() {
+ mock_external_url_controller_.reset(new MockExternalUrlController());
+ ShellWindow::SetExternalUrlControllerForTesting(
+ mock_external_url_controller_.get());
+}
+
const Extension* PlatformAppBrowserTest::LoadAndLaunchPlatformApp(
const char* name) {
content::WindowedNotificationObserver app_loaded_observer(

Powered by Google App Engine
This is Rietveld 408576698