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

Side by Side Diff: chrome/browser/resources/options/clear_browser_data_overlay.js

Issue 426723004: options: Remove a bunch of useless: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 cr.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 7
8 /** 8 /**
9 * ClearBrowserDataOverlay class 9 * ClearBrowserDataOverlay class
10 * Encapsulated handling of the 'Clear Browser Data' overlay page. 10 * Encapsulated handling of the 'Clear Browser Data' overlay page.
(...skipping 29 matching lines...) Expand all
40 * Whether or not the WebUI handler has completed initialization. 40 * Whether or not the WebUI handler has completed initialization.
41 * 41 *
42 * Unless this becomes true, it must be assumed that the above flags might 42 * Unless this becomes true, it must be assumed that the above flags might
43 * not contain the authoritative values. 43 * not contain the authoritative values.
44 * 44 *
45 * @type {boolean} 45 * @type {boolean}
46 * @private 46 * @private
47 */ 47 */
48 isInitializationComplete_: false, 48 isInitializationComplete_: false,
49 49
50 /** 50 /** @override */
51 * Initialize the page.
52 */
53 initializePage: function() { 51 initializePage: function() {
54 // Call base class implementation to starts preference initialization. 52 // Call base class implementation to starts preference initialization.
55 OptionsPage.prototype.initializePage.call(this); 53 OptionsPage.prototype.initializePage.call(this);
56 54
57 var f = this.updateStateOfControls_.bind(this); 55 var f = this.updateStateOfControls_.bind(this);
58 var types = ['browser.clear_data.browsing_history', 56 var types = ['browser.clear_data.browsing_history',
59 'browser.clear_data.download_history', 57 'browser.clear_data.download_history',
60 'browser.clear_data.cache', 58 'browser.clear_data.cache',
61 'browser.clear_data.cookies', 59 'browser.clear_data.cookies',
62 'browser.clear_data.passwords', 60 'browser.clear_data.passwords',
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 } else { 128 } else {
131 var span = document.createElement('span'); 129 var span = document.createElement('span');
132 span.textContent = footerFragments[i]; 130 span.textContent = footerFragments[i];
133 footer.appendChild(span); 131 footer.appendChild(span);
134 i += 1; 132 i += 1;
135 } 133 }
136 } 134 }
137 $('open-content-settings-from-clear-browsing-data').onclick = 135 $('open-content-settings-from-clear-browsing-data').onclick =
138 function(event) { 136 function(event) {
139 OptionsPage.navigateToPage('content'); 137 OptionsPage.navigateToPage('content');
140 } 138 };
141 $('open-search-engines-from-clear-browsing-data').onclick = 139 $('open-search-engines-from-clear-browsing-data').onclick =
142 function(event) { 140 function(event) {
143 OptionsPage.navigateToPage('searchEngines'); 141 OptionsPage.navigateToPage('searchEngines');
144 } 142 };
145 }, 143 },
146 144
147 /** 145 /**
148 * Sets whether or not we are in the process of clearing data. 146 * Sets whether or not we are in the process of clearing data.
149 * @param {boolean} clearing Whether the browsing data is currently being 147 * @param {boolean} clearing Whether the browsing data is currently being
150 * cleared. 148 * cleared.
151 * @private 149 * @private
152 */ 150 */
153 setClearing_: function(clearing) { 151 setClearing_: function(clearing) {
154 this.isClearingInProgress_ = clearing; 152 this.isClearingInProgress_ = clearing;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 var topmostVisiblePage = OptionsPage.getTopmostVisiblePage(); 258 var topmostVisiblePage = OptionsPage.getTopmostVisiblePage();
261 if (topmostVisiblePage && topmostVisiblePage.name == 'clearBrowserData') 259 if (topmostVisiblePage && topmostVisiblePage.name == 'clearBrowserData')
262 OptionsPage.closeOverlay(); 260 OptionsPage.closeOverlay();
263 }; 261 };
264 262
265 // Export 263 // Export
266 return { 264 return {
267 ClearBrowserDataOverlay: ClearBrowserDataOverlay 265 ClearBrowserDataOverlay: ClearBrowserDataOverlay
268 }; 266 };
269 }); 267 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/chromeos/preferred_networks.js ('k') | chrome/browser/resources/options/content_settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698