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

Unified Diff: Source/devtools/front_end/main/Main.js

Issue 573453004: DevTools: Get rid of frontend_modules.json (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments Created 6 years, 3 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
« no previous file with comments | « Source/devtools/front_end/host/module.json ('k') | Source/devtools/front_end/main/module.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/main/Main.js
diff --git a/Source/devtools/front_end/main/Main.js b/Source/devtools/front_end/main/Main.js
index 2cd0b1fc6563c9530bfd9f47e47e1b4551f28154..7f80dc46b710613a667607c434532b5cba7ae1e7 100644
--- a/Source/devtools/front_end/main/Main.js
+++ b/Source/devtools/front_end/main/Main.js
@@ -187,9 +187,10 @@ WebInspector.Main.prototype = {
{
console.timeStamp("Main._createModuleManager");
self.runtime = new Runtime();
+ var core = ["common", "host", "sdk", "ui", "components", "workspace", "bindings", "screencast", "toolbox", "main"];
// FIXME: define html-per-app, make configuration a part of the app.
- var configuration = ["main", "elements", "network", "sources", "timeline", "profiler", "resources", "audits", "console", "source_frame", "extensions", "settings"];
+ var configuration = core.concat(["elements", "network", "sources", "timeline", "profiler", "resources", "audits", "console", "source_frame", "extensions", "settings"]);
if (WebInspector.experimentsSettings.layersPanel.isEnabled())
configuration.push("layers");
if (WebInspector.experimentsSettings.devicesPanel.isEnabled() && !!WebInspector.queryParam("can_dock"))
@@ -197,8 +198,8 @@ WebInspector.Main.prototype = {
if (WebInspector.experimentsSettings.documentation.isEnabled())
configuration.push("documentation");
if (WebInspector.isWorkerFrontend())
- configuration = ["main", "network", "sources", "timeline", "profiler", "resources", "console", "source_frame", "extensions", "settings"];
- self.runtime.registerModules(configuration);
+ configuration = core.concat(["network", "sources", "timeline", "profiler", "resources", "console", "source_frame", "extensions", "settings"]);
+ self.runtime.registerModules(configuration, core);
},
_createAppUI: function()
« no previous file with comments | « Source/devtools/front_end/host/module.json ('k') | Source/devtools/front_end/main/module.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698