| 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 Page = cr.ui.pageManager.Page; | 7 var Page = cr.ui.pageManager.Page; |
| 8 var PageManager = cr.ui.pageManager.PageManager; | 8 var PageManager = cr.ui.pageManager.PageManager; |
| 9 var ArrayDataModel = cr.ui.ArrayDataModel; | 9 var ArrayDataModel = cr.ui.ArrayDataModel; |
| 10 var RepeatingButton = cr.ui.RepeatingButton; | 10 var RepeatingButton = cr.ui.RepeatingButton; |
| (...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 $('gpu-mode-reset-restart-button').onclick = function(event) { | 644 $('gpu-mode-reset-restart-button').onclick = function(event) { |
| 645 chrome.send('restartBrowser'); | 645 chrome.send('restartBrowser'); |
| 646 }; | 646 }; |
| 647 updateGpuRestartButton(); | 647 updateGpuRestartButton(); |
| 648 } | 648 } |
| 649 | 649 |
| 650 // Reset profile settings section. | 650 // Reset profile settings section. |
| 651 $('reset-profile-settings').onclick = function(event) { | 651 $('reset-profile-settings').onclick = function(event) { |
| 652 PageManager.showPageByName('resetProfileSettings'); | 652 PageManager.showPageByName('resetProfileSettings'); |
| 653 }; | 653 }; |
| 654 $('reset-profile-settings-section').hidden = | |
| 655 !loadTimeData.getBoolean('enableResetProfileSettings'); | |
| 656 | 654 |
| 657 // Extension controlled UI. | 655 // Extension controlled UI. |
| 658 this.addExtensionControlledBox_('search-section-content', | 656 this.addExtensionControlledBox_('search-section-content', |
| 659 'search-engine-controlled', | 657 'search-engine-controlled', |
| 660 true); | 658 true); |
| 661 this.addExtensionControlledBox_('extension-controlled-container', | 659 this.addExtensionControlledBox_('extension-controlled-container', |
| 662 'homepage-controlled', | 660 'homepage-controlled', |
| 663 true); | 661 true); |
| 664 this.addExtensionControlledBox_('startup-section-content', | 662 this.addExtensionControlledBox_('startup-section-content', |
| 665 'startpage-controlled', | 663 'startpage-controlled', |
| (...skipping 1314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1980 BrowserOptions.getLoggedInUsername = function() { | 1978 BrowserOptions.getLoggedInUsername = function() { |
| 1981 return BrowserOptions.getInstance().username_; | 1979 return BrowserOptions.getInstance().username_; |
| 1982 }; | 1980 }; |
| 1983 } | 1981 } |
| 1984 | 1982 |
| 1985 // Export | 1983 // Export |
| 1986 return { | 1984 return { |
| 1987 BrowserOptions: BrowserOptions | 1985 BrowserOptions: BrowserOptions |
| 1988 }; | 1986 }; |
| 1989 }); | 1987 }); |
| OLD | NEW |