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

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

Issue 2161033005: DevTools: Fix presubmits failing on InspectorFrontendHostAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix second assignment Created 4 years, 5 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 | « no previous file | third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHostAPI.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js
diff --git a/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js b/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js
index fb17722e447e65aeebede7aef31f5979e108a44a..8acac08648a1363f774bb89bdb096f150a20fbc4 100644
--- a/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js
+++ b/third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHost.js
@@ -449,15 +449,15 @@ WebInspector.InspectorFrontendHostStub.prototype = {
/**
* @type {!InspectorFrontendHostAPI}
*/
-window.InspectorFrontendHost = window.InspectorFrontendHost || null;
-
+var InspectorFrontendHost = window.InspectorFrontendHost || null;
+window.InspectorFrontendHost = InspectorFrontendHost;
(function(){
function initializeInspectorFrontendHost()
{
if (!InspectorFrontendHost) {
// Instantiate stub for web-hosted mode if necessary.
- InspectorFrontendHost = new WebInspector.InspectorFrontendHostStub();
+ window.InspectorFrontendHost = InspectorFrontendHost = new WebInspector.InspectorFrontendHostStub();
} else {
// Otherwise add stubs for missing methods that are declared in the interface.
var proto = WebInspector.InspectorFrontendHostStub.prototype;
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/host/InspectorFrontendHostAPI.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698