Skip to content

Commit

Permalink
DevTools: Fix presubmits failing on InspectorFrontendHostAPI
Browse files Browse the repository at this point in the history
Review-Url: https://codereview.chromium.org/2161033005
Cr-Commit-Position: refs/heads/master@{#406709}
  • Loading branch information
JoelEinbinder authored and Commit bot committed Jul 20, 2016
1 parent d253713 commit 1834b66
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions front_end/host/InspectorFrontendHost.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions front_end/host/InspectorFrontendHostAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@


/** @interface */
window.InspectorFrontendHostAPI = function()
function InspectorFrontendHostAPI()
{
}

window.InspectorFrontendHostAPI = InspectorFrontendHostAPI;
/** @typedef
{{
type: string,
Expand Down

0 comments on commit 1834b66

Please sign in to comment.