OLD | NEW |
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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 // Downloads section. | 375 // Downloads section. |
376 Preferences.getInstance().addEventListener('download.default_directory', | 376 Preferences.getInstance().addEventListener('download.default_directory', |
377 this.onDefaultDownloadDirectoryChanged_.bind(this)); | 377 this.onDefaultDownloadDirectoryChanged_.bind(this)); |
378 $('downloadLocationChangeButton').onclick = function(event) { | 378 $('downloadLocationChangeButton').onclick = function(event) { |
379 chrome.send('selectDownloadLocation'); | 379 chrome.send('selectDownloadLocation'); |
380 }; | 380 }; |
381 if (!cr.isChromeOS) { | 381 if (!cr.isChromeOS) { |
382 $('autoOpenFileTypesResetToDefault').onclick = function(event) { | 382 $('autoOpenFileTypesResetToDefault').onclick = function(event) { |
383 chrome.send('autoOpenFileTypesAction'); | 383 chrome.send('autoOpenFileTypesAction'); |
384 }; | 384 }; |
| 385 } else { |
| 386 $('disable-drive-row').hidden = |
| 387 UIAccountTweaks.loggedInAsLocallyManagedUser(); |
385 } | 388 } |
386 | 389 |
387 // HTTPS/SSL section. | 390 // HTTPS/SSL section. |
388 if (cr.isWindows || cr.isMac) { | 391 if (cr.isWindows || cr.isMac) { |
389 $('certificatesManageButton').onclick = function(event) { | 392 $('certificatesManageButton').onclick = function(event) { |
390 chrome.send('showManageSSLCertificates'); | 393 chrome.send('showManageSSLCertificates'); |
391 }; | 394 }; |
392 } else { | 395 } else { |
393 $('certificatesManageButton').onclick = function(event) { | 396 $('certificatesManageButton').onclick = function(event) { |
394 OptionsPage.navigateToPage('certificates'); | 397 OptionsPage.navigateToPage('certificates'); |
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1507 BrowserOptions.getLoggedInUsername = function() { | 1510 BrowserOptions.getLoggedInUsername = function() { |
1508 return BrowserOptions.getInstance().username_; | 1511 return BrowserOptions.getInstance().username_; |
1509 }; | 1512 }; |
1510 } | 1513 } |
1511 | 1514 |
1512 // Export | 1515 // Export |
1513 return { | 1516 return { |
1514 BrowserOptions: BrowserOptions | 1517 BrowserOptions: BrowserOptions |
1515 }; | 1518 }; |
1516 }); | 1519 }); |
OLD | NEW |