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

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

Issue 5958005: DOMUI: Rename download path 'Browse...' button to 'Change...' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add TODO Created 10 years 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
« no previous file with comments | « chrome/browser/resources/options/advanced_options.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 OptionsPage.showTab($('personal-certs-nav-tab')); 71 OptionsPage.showTab($('personal-certs-nav-tab'));
72 chrome.send('coreOptionsUserMetricsAction', 72 chrome.send('coreOptionsUserMetricsAction',
73 ['Options_ManageSSLCertificates']); 73 ['Options_ManageSSLCertificates']);
74 }; 74 };
75 } 75 }
76 76
77 if (!cr.isChromeOS) { 77 if (!cr.isChromeOS) {
78 $('proxiesConfigureButton').onclick = function(event) { 78 $('proxiesConfigureButton').onclick = function(event) {
79 chrome.send('showNetworkProxySettings'); 79 chrome.send('showNetworkProxySettings');
80 }; 80 };
81 $('downloadLocationBrowseButton').onclick = function(event) { 81 $('downloadLocationChangeButton').onclick = function(event) {
82 chrome.send('selectDownloadLocation'); 82 chrome.send('selectDownloadLocation');
83 }; 83 };
84 84
85 // Remove Windows-style accelerators from the Browse button label. 85 // Remove Windows-style accelerators from the Browse button label.
86 // TODO(csilv): Remove this after the accelerator has been removed from 86 // TODO(csilv): Remove this after the accelerator has been removed from
87 // the localized strings file, pending removal of old options window. 87 // the localized strings file, pending removal of old options window.
88 $('downloadLocationBrowseButton').textContent = 88 $('downloadLocationChangeButton').textContent =
89 localStrings.getStringWithoutAccelerator( 89 localStrings.getStringWithoutAccelerator(
90 'downloadLocationBrowseButton'); 90 'downloadLocationChangeButton');
91 } else { 91 } else {
92 $('proxiesConfigureButton').onclick = function(event) { 92 $('proxiesConfigureButton').onclick = function(event) {
93 OptionsPage.showPageByName('proxy'); 93 OptionsPage.showPageByName('proxy');
94 chrome.send('coreOptionsUserMetricsAction', 94 chrome.send('coreOptionsUserMetricsAction',
95 ['Options_ShowProxySettings']); 95 ['Options_ShowProxySettings']);
96 }; 96 };
97 } 97 }
98 98
99 if (cr.isWindows) { 99 if (cr.isWindows) {
100 $('sslCheckRevocation').onclick = function(event) { 100 $('sslCheckRevocation').onclick = function(event) {
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 $('cloud-print-proxy-section').style.display = 'none'; 227 $('cloud-print-proxy-section').style.display = 'none';
228 } 228 }
229 }; 229 };
230 230
231 // Export 231 // Export
232 return { 232 return {
233 AdvancedOptions: AdvancedOptions 233 AdvancedOptions: AdvancedOptions
234 }; 234 };
235 235
236 }); 236 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/advanced_options.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698