Commit 9018df6a authored by Pavel Feldman's avatar Pavel Feldman Committed by Commit Bot

DevTools: bake the screencast module into the remote debugging configurations of the inspector app.

Bug: 819449
Change-Id: I492b98d296a2646a79c34c21d6c2a265dff7cc13
Reviewed-on: https://chromium-review.googlesource.com/953144Reviewed-by: default avatarDmitry Gozman <dgozman@chromium.org>
Commit-Queue: Pavel Feldman <pfeldman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542656}
parent 94d037e8
...@@ -19,8 +19,8 @@ namespace content { ...@@ -19,8 +19,8 @@ namespace content {
namespace { namespace {
static GURL GetFrontendURL() { static GURL GetFrontendURL() {
int port = ShellDevToolsManagerDelegate::GetHttpHandlerPort(); int port = ShellDevToolsManagerDelegate::GetHttpHandlerPort();
return GURL( return GURL(base::StringPrintf(
base::StringPrintf("http://127.0.0.1:%d/devtools/inspector.html", port)); "http://127.0.0.1:%d/devtools/devtools_app.html", port));
} }
} // namespace } // namespace
......
...@@ -1048,7 +1048,6 @@ generated_remote_modules = [ ...@@ -1048,7 +1048,6 @@ generated_remote_modules = [
"$resources_out_dir/cm_modes/cm_modes_module.js", "$resources_out_dir/cm_modes/cm_modes_module.js",
"$resources_out_dir/emulated_devices/emulated_devices_module.js", "$resources_out_dir/emulated_devices/emulated_devices_module.js",
"$resources_out_dir/product_registry_impl/product_registry_impl_module.js", "$resources_out_dir/product_registry_impl/product_registry_impl_module.js",
"$resources_out_dir/screencast/screencast_module.js",
] ]
devtools_applications = [ devtools_applications = [
......
{ {
"modules" : [ "modules" : [
{ "name": "screencast", "type": "remote" } { "name": "screencast", "type": "autostart" }
], ],
"extends": "devtools_app", "extends": "devtools_app",
"has_html": true "has_html": true
......
...@@ -212,19 +212,8 @@ Main.Main = class { ...@@ -212,19 +212,8 @@ Main.Main = class {
this._registerForwardedShortcuts(); this._registerForwardedShortcuts();
this._registerMessageSinkListener(); this._registerMessageSinkListener();
// Pick first app we could instantiate (for test harness).
for (const extension of self.runtime.extensions(Common.AppProvider)) {
try {
const instance = await extension.instance();
if (instance) {
this._showAppUI(instance);
break;
}
} catch (e) {
console.error(e);
}
}
Main.Main.timeEnd('Main._createAppUI'); Main.Main.timeEnd('Main._createAppUI');
this._showAppUI(await self.runtime.extension(Common.AppProvider).instance());
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment