commit | 2d7d65c5e8aca44851097a53a02bfce59384dbab | [log] [tgz] |
---|---|---|
author | Paul Lewis <[email protected]> | Mon Mar 16 17:26:30 2020 |
committer | Commit Bot <[email protected]> | Mon Mar 16 22:04:07 2020 |
tree | 0f32cd87a75ecd0b4362c72090fa5b4671765804 | |
parent | 6149083d74e99683d699a59f798a1881d0d5df30 [diff] [blame] |
[global] Remaps self.Common.settings This CL changes references to self.Common.settings (the global instance of SDK.Common.Settings) over to Common.Settings.Settings.instance(). To keep both TypeScript and Closure happy we must make a method on the Settings class itself, since it only allows private constructors to be accessed by static methods on the class. Bug: 1058320 Change-Id: I04afc8caf64acf29cdda13ef03ad05cfff4786a1 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2091450 Commit-Queue: Paul Lewis <[email protected]> Reviewed-by: Tim van der Lippe <[email protected]>
diff --git a/front_end/profiler/LiveHeapProfileView.js b/front_end/profiler/LiveHeapProfileView.js index 035a385..fef3a23 100644 --- a/front_end/profiler/LiveHeapProfileView.js +++ b/front_end/profiler/LiveHeapProfileView.js
@@ -19,7 +19,7 @@ this._gridNodeByUrl = new Map(); this.registerRequiredCSS('profiler/liveHeapProfile.css'); - this._setting = self.Common.settings.moduleSetting('memoryLiveHeapProfile'); + this._setting = Common.Settings.Settings.instance().moduleSetting('memoryLiveHeapProfile'); const toolbar = new UI.Toolbar.Toolbar('live-heap-profile-toolbar', this.contentElement); this._toggleRecordAction =