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

Unified Diff: Source/devtools/front_end/host/InspectorFrontendHost.js

Issue 710033003: [DevTools] Extract part of DevTools into inspector app. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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: Source/devtools/front_end/host/InspectorFrontendHost.js
diff --git a/Source/devtools/front_end/host/InspectorFrontendHost.js b/Source/devtools/front_end/host/InspectorFrontendHost.js
index e51e3c3405e98b01051866ecb7d0bebb1d3a66fe..bcacc062565f579163c07194eab0f7ea36ac7d7d 100644
--- a/Source/devtools/front_end/host/InspectorFrontendHost.js
+++ b/Source/devtools/front_end/host/InspectorFrontendHost.js
@@ -628,6 +628,10 @@ WebInspector.InspectorFrontendHostStub.prototype = {
var InspectorFrontendHost = window.InspectorFrontendHost || null;
(function() {
+ if (window.top) {
+ // FIXME(dgozman): use InspectorAppHost everywhere in inspector app instead of InspectorFrontendHost.
+ InspectorFrontendHost = window.top.InspectorFrontendHost || null;
+ }
if (!InspectorFrontendHost) {
// Instantiate stub for web-hosted mode if necessary.
InspectorFrontendHost = new WebInspector.InspectorFrontendHostStub();

Powered by Google App Engine
This is Rietveld 408576698