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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/DataSaverInfobar.js

Issue 2755033003: DevTools: [regression] can't disable remote debugging data saver infobar. (Closed)
Patch Set: Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 Components.DataSaverInfobar = class extends UI.Infobar { 7 Components.DataSaverInfobar = class extends UI.Infobar {
8 constructor() { 8 constructor() {
9 super( 9 super(
10 UI.Infobar.Type.Warning, Common.UIString('Consider disabling Chrome Data Saver while debugging.'), 10 UI.Infobar.Type.Warning, Common.UIString('Consider disabling Chrome Data Saver while debugging.'),
(...skipping 14 matching lines...) Expand all
25 Components.DataSaverInfobar._infobars.push(infobar); 25 Components.DataSaverInfobar._infobars.push(infobar);
26 panel.showInfobar(infobar); 26 panel.showInfobar(infobar);
27 } 27 }
28 } 28 }
29 29
30 /** 30 /**
31 * @override 31 * @override
32 */ 32 */
33 dispose() { 33 dispose() {
34 for (var infobar of Components.DataSaverInfobar._infobars) 34 for (var infobar of Components.DataSaverInfobar._infobars)
35 infobar.dispose(); 35 UI.Infobar.prototype.dispose.call(infobar);
36 } 36 }
37 }; 37 };
38 38
39 Components.DataSaverInfobar._infobars = []; 39 Components.DataSaverInfobar._infobars = [];
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698