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( |