commit | 75c7d0decc52027c53a9e094a91526e91202bc9c | [log] [tgz] |
---|---|---|
author | Paul Lewis <[email protected]> | Thu Mar 19 12:17:26 2020 |
committer | Commit Bot <[email protected]> | Thu Mar 19 12:39:32 2020 |
tree | adbf6e943f8b0a754f6e1885bcc2266e569afb3b | |
parent | e4d03324bf79e72aecec3435f24b1059e32c3396 [diff] [blame] |
[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;