commit | 7cbdcaef5c8171543910df429f74c4b4f0df71ab | [log] [tgz] |
---|---|---|
author | Paul Lewis <[email protected]> | Thu Mar 19 10:48:12 2020 |
committer | Commit Bot <[email protected]> | Thu Mar 19 11:12:32 2020 |
tree | 533fac16c1536258098cf0194e774f90018fb140 | |
parent | 640c9f03b672b6ac872af1fd2efc86ad029fe940 [diff] [blame] |
[global] Remaps self.Workspace.workspace Moves self.Workspace.workspace to an instance() method. Bug: 1058320 Change-Id: I56f31b8bbba2db09ae25349516dba013ed807642 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2109760 Reviewed-by: Tim van der Lippe <[email protected]> Commit-Queue: Paul Lewis <[email protected]>
diff --git a/front_end/profiler/LiveHeapProfileView.js b/front_end/profiler/LiveHeapProfileView.js index fef3a23..2d3bdd5 100644 --- a/front_end/profiler/LiveHeapProfileView.js +++ b/front_end/profiler/LiveHeapProfileView.js
@@ -6,6 +6,7 @@ import * as DataGrid from '../data_grid/data_grid.js'; import * as SDK from '../sdk/sdk.js'; import * as UI from '../ui/ui.js'; +import * as Workspace from '../workspace/workspace.js'; import {SamplingHeapProfileNode} from './HeapProfileView.js'; // eslint-disable-line no-unused-vars @@ -218,7 +219,7 @@ if (!node || !node._url) { return; } - const sourceCode = self.Workspace.workspace.uiSourceCodeForURL(node._url); + const sourceCode = Workspace.Workspace.WorkspaceImpl.instance().uiSourceCodeForURL(node._url); if (sourceCode) { Common.Revealer.reveal(sourceCode); }