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 = []; |