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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/DataSaverInfobar.js

Issue 2608043002: DevTools: extract modules (with extensions) (Closed)
Patch Set: fixes Created 3 years, 11 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/main/DataSaverInfobar.js
diff --git a/third_party/WebKit/Source/devtools/front_end/components/DataSaverInfobar.js b/third_party/WebKit/Source/devtools/front_end/main/DataSaverInfobar.js
similarity index 77%
rename from third_party/WebKit/Source/devtools/front_end/components/DataSaverInfobar.js
rename to third_party/WebKit/Source/devtools/front_end/main/DataSaverInfobar.js
index 37b459d7a749af2b1b179b13a218bdc5a3a60a02..8bcce40b1acfe6bf24974430da162ca50ff776e7 100644
--- a/third_party/WebKit/Source/devtools/front_end/components/DataSaverInfobar.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/DataSaverInfobar.js
@@ -4,7 +4,7 @@
/**
* @unrestricted
*/
-Components.DataSaverInfobar = class extends UI.Infobar {
+Main.DataSaverInfobar = class extends UI.Infobar {
constructor() {
super(
UI.Infobar.Type.Warning, Common.UIString('Consider disabling Chrome Data Saver while debugging.'),
@@ -21,8 +21,8 @@ Components.DataSaverInfobar = class extends UI.Infobar {
*/
static maybeShowInPanel(panel) {
if (Runtime.queryParam('remoteFrontend')) {
- var infobar = new Components.DataSaverInfobar();
- Components.DataSaverInfobar._infobars.push(infobar);
+ var infobar = new Main.DataSaverInfobar();
+ Main.DataSaverInfobar._infobars.push(infobar);
panel.showInfobar(infobar);
}
}
@@ -31,9 +31,9 @@ Components.DataSaverInfobar = class extends UI.Infobar {
* @override
*/
dispose() {
- for (var infobar of Components.DataSaverInfobar._infobars)
+ for (var infobar of Main.DataSaverInfobar._infobars)
infobar.dispose();
}
};
-Components.DataSaverInfobar._infobars = [];
+Main.DataSaverInfobar._infobars = [];

Powered by Google App Engine
This is Rietveld 408576698