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

Side by Side Diff: chrome/browser/resources/options/chromeos/internet_detail.js

Issue 12502012: Adding a "Learn more" link to the Google DNS selection (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing useless <ex> Created 7 years, 9 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
« no previous file with comments | « chrome/browser/resources/options/chromeos/internet_detail.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) 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.internet', function() { 5 cr.define('options.internet', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 7 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
8 /** @const */ var IPAddressField = options.internet.IPAddressField; 8 /** @const */ var IPAddressField = options.internet.IPAddressField;
9 9
10 /** 10 /**
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 observePrefsUI($('proxy-all-protocols')); 268 observePrefsUI($('proxy-all-protocols'));
269 269
270 $('ip-automatic-configuration-checkbox').addEventListener('click', 270 $('ip-automatic-configuration-checkbox').addEventListener('click',
271 this.handleIpAutoConfig_); 271 this.handleIpAutoConfig_);
272 $('automatic-dns-radio').addEventListener('click', 272 $('automatic-dns-radio').addEventListener('click',
273 this.handleNameServerTypeChange_); 273 this.handleNameServerTypeChange_);
274 $('google-dns-radio').addEventListener('click', 274 $('google-dns-radio').addEventListener('click',
275 this.handleNameServerTypeChange_); 275 this.handleNameServerTypeChange_);
276 $('user-dns-radio').addEventListener('click', 276 $('user-dns-radio').addEventListener('click',
277 this.handleNameServerTypeChange_); 277 this.handleNameServerTypeChange_);
278
279 $('google-dns-label').innerHTML =
280 loadTimeData.getString('googleNameServers');
278 }, 281 },
279 282
280 /** 283 /**
281 * Handler for "add" event fired from userNameEdit. 284 * Handler for "add" event fired from userNameEdit.
282 * @param {Event} e Add event fired from userNameEdit. 285 * @param {Event} e Add event fired from userNameEdit.
283 * @private 286 * @private
284 */ 287 */
285 handleAddProxyException_: function(e) { 288 handleAddProxyException_: function(e) {
286 var exception = $('new-host').value; 289 var exception = $('new-host').value;
287 $('new-host').value = ''; 290 $('new-host').value = '';
(...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after
1111 1114
1112 // Don't show page name in address bar and in history to prevent people 1115 // Don't show page name in address bar and in history to prevent people
1113 // navigate here by hand and solve issue with page session restore. 1116 // navigate here by hand and solve issue with page session restore.
1114 OptionsPage.showPageByName('detailsInternetPage', false); 1117 OptionsPage.showPageByName('detailsInternetPage', false);
1115 }; 1118 };
1116 1119
1117 return { 1120 return {
1118 DetailsInternetPage: DetailsInternetPage 1121 DetailsInternetPage: DetailsInternetPage
1119 }; 1122 };
1120 }); 1123 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/chromeos/internet_detail.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698