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

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

Issue 11193002: Add third batch of controlled setting indicators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment addressed. Created 8 years, 2 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 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 var RepeatingButton = cr.ui.RepeatingButton; 8 var RepeatingButton = cr.ui.RepeatingButton;
9 9
10 // 10 //
(...skipping 758 matching lines...) Expand 10 before | Expand all | Expand 10 after
769 if (cr.isChromeOS) { 769 if (cr.isChromeOS) {
770 // On ChromeOS, replace /special/drive with Drive for drive paths, and 770 // On ChromeOS, replace /special/drive with Drive for drive paths, and
771 // /home/chronos/user/Downloads with Downloads for local files. 771 // /home/chronos/user/Downloads with Downloads for local files.
772 // Also replace '/' with ' \u203a ' (angled quote sign) everywhere. 772 // Also replace '/' with ' \u203a ' (angled quote sign) everywhere.
773 var path = $('downloadLocationPath').value; 773 var path = $('downloadLocationPath').value;
774 path = path.replace(/^\/special\/drive/, 'Google Drive'); 774 path = path.replace(/^\/special\/drive/, 'Google Drive');
775 path = path.replace(/^\/home\/chronos\/user\//, ''); 775 path = path.replace(/^\/home\/chronos\/user\//, '');
776 path = path.replace(/\//g, ' \u203a '); 776 path = path.replace(/\//g, ' \u203a ');
777 $('downloadLocationPath').value = path; 777 $('downloadLocationPath').value = path;
778 } 778 }
779 if (event.value.disabled)
780 $('download-location-label').classList.add('disabled');
781 else
782 $('download-location-label').classList.remove('disabled');
783 $('downloadLocationChangeButton').disabled = event.value.disabled;
779 }, 784 },
780 785
781 /** 786 /**
782 * Update the Default Browsers section based on the current state. 787 * Update the Default Browsers section based on the current state.
783 * @param {string} statusString Description of the current default state. 788 * @param {string} statusString Description of the current default state.
784 * @param {boolean} isDefault Whether or not the browser is currently 789 * @param {boolean} isDefault Whether or not the browser is currently
785 * default. 790 * default.
786 * @param {boolean} canBeDefault Whether or not the browser can be default. 791 * @param {boolean} canBeDefault Whether or not the browser can be default.
787 * @private 792 * @private
788 */ 793 */
(...skipping 550 matching lines...) Expand 10 before | Expand all | Expand 10 after
1339 BrowserOptions.getLoggedInUsername = function() { 1344 BrowserOptions.getLoggedInUsername = function() {
1340 return BrowserOptions.getInstance().username_; 1345 return BrowserOptions.getInstance().username_;
1341 }; 1346 };
1342 } 1347 }
1343 1348
1344 // Export 1349 // Export
1345 return { 1350 return {
1346 BrowserOptions: BrowserOptions 1351 BrowserOptions: BrowserOptions
1347 }; 1352 };
1348 }); 1353 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/test/data/policy/policy_test_cases.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698