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

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

Issue 6110006: give tabbed options clear browsing dialog a facelift (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: delete bugs 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // AdvancedOptions class 10 // AdvancedOptions class
(...skipping 18 matching lines...) Expand all
29 OptionsPage.prototype.initializePage.call(this); 29 OptionsPage.prototype.initializePage.call(this);
30 30
31 // Set up click handlers for buttons. 31 // Set up click handlers for buttons.
32 $('privacyContentSettingsButton').onclick = function(event) { 32 $('privacyContentSettingsButton').onclick = function(event) {
33 OptionsPage.showPageByName('content'); 33 OptionsPage.showPageByName('content');
34 OptionsPage.showTab($('cookies-nav-tab')); 34 OptionsPage.showTab($('cookies-nav-tab'));
35 chrome.send('coreOptionsUserMetricsAction', 35 chrome.send('coreOptionsUserMetricsAction',
36 ['Options_ContentSettings']); 36 ['Options_ContentSettings']);
37 }; 37 };
38 $('privacyClearDataButton').onclick = function(event) { 38 $('privacyClearDataButton').onclick = function(event) {
39 OptionsPage.showOverlay('clearBrowserDataOverlay'); 39 OptionsPage.showPageByName('clearBrowserDataPage');
40 chrome.send('coreOptionsUserMetricsAction', ['Options_ClearData']); 40 chrome.send('coreOptionsUserMetricsAction', ['Options_ClearData']);
41 }; 41 };
42 42
43 // 'metricsReportingEnabled' element is only present on Chrome branded 43 // 'metricsReportingEnabled' element is only present on Chrome branded
44 // builds. 44 // builds.
45 if ($('metricsReportingEnabled')) { 45 if ($('metricsReportingEnabled')) {
46 $('metricsReportingEnabled').onclick = function(event) { 46 $('metricsReportingEnabled').onclick = function(event) {
47 chrome.send('metricsReportingCheckboxAction', 47 chrome.send('metricsReportingCheckboxAction',
48 [String(event.target.checked)]); 48 [String(event.target.checked)]);
49 }; 49 };
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 var proxySectionElm = $('remoting-section'); 266 var proxySectionElm = $('remoting-section');
267 proxySectionElm.parentNode.removeChild(proxySectionElm); 267 proxySectionElm.parentNode.removeChild(proxySectionElm);
268 }; 268 };
269 269
270 // Export 270 // Export
271 return { 271 return {
272 AdvancedOptions: AdvancedOptions 272 AdvancedOptions: AdvancedOptions
273 }; 273 };
274 274
275 }); 275 });
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/options/clear_browser_data_handler.cc ('k') | chrome/browser/resources/options/clear_browser_data.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698