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

Side by Side Diff: chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.js

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review Created 3 years, 6 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
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 /** 5 /**
6 * @fileoverview 'settings-clear-browsing-data-dialog' allows the user to delete 6 * @fileoverview 'settings-clear-browsing-data-dialog' allows the user to delete
7 * browsing data that has been cached by Chromium. 7 * browsing data that has been cached by Chromium.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-clear-browsing-data-dialog', 10 is: 'settings-clear-browsing-data-dialog',
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 /** @private */ 81 /** @private */
82 importantSitesFlagEnabled_: { 82 importantSitesFlagEnabled_: {
83 type: Boolean, 83 type: Boolean,
84 value: function() { 84 value: function() {
85 return loadTimeData.getBoolean('importantSitesInCbd'); 85 return loadTimeData.getBoolean('importantSitesInCbd');
86 }, 86 },
87 }, 87 },
88 88
89 /** @private */ 89 /** @private */
90 showImportantSitesDialog_: { 90 showImportantSitesDialog_: {type: Boolean, value: false},
91 type: Boolean,
92 value: false
93 },
94 }, 91 },
95 92
96 /** @private {settings.ClearBrowsingDataBrowserProxy} */ 93 /** @private {settings.ClearBrowsingDataBrowserProxy} */
97 browserProxy_: null, 94 browserProxy_: null,
98 95
99 /** @override */ 96 /** @override */
100 ready: function() { 97 ready: function() {
101 this.$.clearFrom.menuOptions = this.clearFromOptions_; 98 this.$.clearFrom.menuOptions = this.clearFromOptions_;
99 this.addWebUIListener('update-footer', this.updateFooter_.bind(this));
102 this.addWebUIListener( 100 this.addWebUIListener(
103 'update-footer', 101 'update-counter-text', this.updateCounterText_.bind(this));
104 this.updateFooter_.bind(this));
105 this.addWebUIListener(
106 'update-counter-text',
107 this.updateCounterText_.bind(this));
108 }, 102 },
109 103
110 /** @override */ 104 /** @override */
111 attached: function() { 105 attached: function() {
112 this.browserProxy_ = 106 this.browserProxy_ =
113 settings.ClearBrowsingDataBrowserProxyImpl.getInstance(); 107 settings.ClearBrowsingDataBrowserProxyImpl.getInstance();
114 this.browserProxy_.initialize().then(function() { 108 this.browserProxy_.initialize().then(function() {
115 this.$.clearBrowsingDataDialog.showModal(); 109 this.$.clearBrowsingDataDialog.showModal();
116 }.bind(this)); 110 }.bind(this));
117 111
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 242
249 /** 243 /**
250 * Handles the closing of the notice about other forms of browsing history. 244 * Handles the closing of the notice about other forms of browsing history.
251 * @private 245 * @private
252 */ 246 */
253 onHistoryDeletionDialogClose_: function() { 247 onHistoryDeletionDialogClose_: function() {
254 this.showHistoryDeletionDialog_ = false; 248 this.showHistoryDeletionDialog_ = false;
255 this.closeDialogs_(); 249 this.closeDialogs_();
256 }, 250 },
257 }); 251 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698