Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(860)

Unified Diff: third_party/WebKit/Source/devtools/front_end/timeline/CountersGraph.js

Issue 2678623002: DevTools: pass title when creating settings (Closed)
Patch Set: ac Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/timeline/CountersGraph.js
diff --git a/third_party/WebKit/Source/devtools/front_end/timeline/CountersGraph.js b/third_party/WebKit/Source/devtools/front_end/timeline/CountersGraph.js
index 3cf42ff2a250702529789795acc4c870144e34ae..1654e797746c1fbc960ce9b75e7193412810c21b 100644
--- a/third_party/WebKit/Source/devtools/front_end/timeline/CountersGraph.js
+++ b/third_party/WebKit/Source/devtools/front_end/timeline/CountersGraph.js
@@ -379,7 +379,8 @@ Timeline.CountersGraph.CounterUI = class {
var container = countersPane._infoWidget.element.createChild('div', 'memory-counter-selector-info');
this._setting = Common.settings.createSetting('timelineCountersGraph-' + title, true);
- this._filter = new UI.ToolbarCheckbox(title, title, this._setting);
+ this._setting.setTitle(title);
+ this._filter = new UI.ToolbarSettingCheckbox(this._setting, title);
this._filter.inputElement.classList.add('-theme-preserve');
var color = Common.Color.parse(graphColor).setAlpha(0.5).asString(Common.Color.Format.RGBA);
if (color) {

Powered by Google App Engine
This is Rietveld 408576698