[global] Remaps self.UI.viewManager

Moves self.UI.viewManager to an instance() method.

Bug: 1058320
Change-Id: I0c444101da59ba9eba4745d1dc551bb8906a0a4f
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2107624
Reviewed-by: Jack Franklin <[email protected]>
Commit-Queue: Paul Lewis <[email protected]>
diff --git a/front_end/profiler/LiveHeapProfileView.js b/front_end/profiler/LiveHeapProfileView.js
index 2d3bdd5..125ec05 100644
--- a/front_end/profiler/LiveHeapProfileView.js
+++ b/front_end/profiler/LiveHeapProfileView.js
@@ -331,8 +331,8 @@
   handleAction(context, actionId) {
     (async () => {
       const profileViewId = 'live_heap_profile';
-      await self.UI.viewManager.showView(profileViewId);
-      const widget = await self.UI.viewManager.view(profileViewId).widget();
+      await UI.ViewManager.ViewManager.instance().showView(profileViewId);
+      const widget = await UI.ViewManager.ViewManager.instance().view(profileViewId).widget();
       this._innerHandleAction(/** @type {!LiveHeapProfileView} */ (widget), actionId);
     })();
     return true;