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

Unified Diff: chrome/browser/resources/net_internals/export_view.js

Issue 2722483004: Replace net-internals/export tab with deprecation msg and button to show old UI. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « chrome/browser/resources/net_internals/export_view.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/net_internals/export_view.js
diff --git a/chrome/browser/resources/net_internals/export_view.js b/chrome/browser/resources/net_internals/export_view.js
index 7732e23dc0664dc380a07b446484a0915e968bb7..f44bd1898108831e5dc8cb6a0055679cef344fa3 100644
--- a/chrome/browser/resources/net_internals/export_view.js
+++ b/chrome/browser/resources/net_internals/export_view.js
@@ -20,6 +20,11 @@ var ExportView = (function() {
// Call superclass's constructor.
superClass.call(this, ExportView.MAIN_BOX_ID);
+ this.deprecatedNoticeUI_ = $(ExportView.DEPRECATED_NOTICE_UI_ID);
+ this.showDeprecatedUIButton_ = $(ExportView.SHOW_DEPRECATED_UI_BUTTON_ID);
+ this.showDeprecatedUIButton_.onclick = this.onShowDeprecatedUI_.bind(this);
+ this.deprecatedExportUI_ = $(ExportView.DEPRECATED_EXPORT_UI_ID);
+
var privacyStrippingCheckbox = $(ExportView.PRIVACY_STRIPPING_CHECKBOX_ID);
privacyStrippingCheckbox.onclick =
this.onSetPrivacyStripping_.bind(this, privacyStrippingCheckbox);
@@ -46,6 +51,10 @@ var ExportView = (function() {
ExportView.TAB_HASH = '#export';
// IDs for special HTML elements in export_view.html
+ ExportView.DEPRECATED_NOTICE_UI_ID = 'export-view-deprecated-notice';
+ ExportView.SHOW_DEPRECATED_UI_BUTTON_ID = 'export-view-show-deprecated-ui';
+ ExportView.DEPRECATED_EXPORT_UI_ID = 'export-view-ui-deprecated';
+
ExportView.MAIN_BOX_ID = 'export-view-tab-content';
ExportView.DOWNLOAD_ANCHOR_ID = 'export-view-download-anchor';
ExportView.SAVE_FILE_BUTTON_ID = 'export-view-save-log-file';
@@ -62,6 +71,15 @@ var ExportView = (function() {
__proto__: superClass.prototype,
/**
+ * Hides the export-view deprecation warning message and shows the
+ * deprecated export-view UI.
+ */
+ onShowDeprecatedUI_: function() {
+ setNodeDisplay(this.deprecatedNoticeUI_, false);
+ setNodeDisplay(this.deprecatedExportUI_, true);
+ },
+
+ /**
* Depending on the value of the checkbox, enables or disables stripping
* cookies and passwords from log dumps and displayed events.
*/
« no previous file with comments | « chrome/browser/resources/net_internals/export_view.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698