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

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

Issue 6174009: Tidy up <select>s in tabbed options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: don't anonymize Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 8
9 /** 9 /**
10 * ClearBrowserData class 10 * ClearBrowserData class
(...skipping 14 matching lines...) Expand all
25 // Inherit ClearBrowserDataPage from OptionsPage. 25 // Inherit ClearBrowserDataPage from OptionsPage.
26 __proto__: OptionsPage.prototype, 26 __proto__: OptionsPage.prototype,
27 27
28 /** 28 /**
29 * Initialize the page. 29 * Initialize the page.
30 */ 30 */
31 initializePage: function() { 31 initializePage: function() {
32 // Call base class implementation to starts preference initialization. 32 // Call base class implementation to starts preference initialization.
33 OptionsPage.prototype.initializePage.call(this); 33 OptionsPage.prototype.initializePage.call(this);
34 34
35 // The time period is stored as a number.
36 $('clearBrowsingDataTimePeriod').dataType = 'number';
37
38 var f = this.updateCommitButtonState_.bind(this); 35 var f = this.updateCommitButtonState_.bind(this);
39 var types = ['browser.clear_data.browsing_history', 36 var types = ['browser.clear_data.browsing_history',
40 'browser.clear_data.download_history', 37 'browser.clear_data.download_history',
41 'browser.clear_data.cache', 38 'browser.clear_data.cache',
42 'browser.clear_data.cookies', 39 'browser.clear_data.cookies',
43 'browser.clear_data.passwords', 40 'browser.clear_data.passwords',
44 'browser.clear_data.form_data']; 41 'browser.clear_data.form_data'];
45 types.forEach(function(type) { 42 types.forEach(function(type) {
46 Preferences.getInstance().addEventListener(type, f); 43 Preferences.getInstance().addEventListener(type, f);
47 }); 44 });
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 this.setClearingState(false); 109 this.setClearingState(false);
113 } 110 }
114 111
115 // Export 112 // Export
116 return { 113 return {
117 ClearBrowserDataPage: ClearBrowserDataPage 114 ClearBrowserDataPage: ClearBrowserDataPage
118 }; 115 };
119 116
120 }); 117 });
121 118
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698