[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);
     }