| Index: chrome/browser/resources/options2/browser_options.js
|
| ===================================================================
|
| --- chrome/browser/resources/options2/browser_options.js (revision 120769)
|
| +++ chrome/browser/resources/options2/browser_options.js (working copy)
|
| @@ -215,6 +215,8 @@
|
| $('set-as-default-browser').onclick = function(event) {
|
| chrome.send('becomeDefaultBrowser');
|
| };
|
| +
|
| + $('auto-launch').onclick = this.handleAutoLaunchChanged_;
|
| }
|
|
|
| // Under the hood section.
|
| @@ -331,6 +333,16 @@
|
| },
|
|
|
| /**
|
| + * Shows the autoLaunch preference and initializes its checkbox value.
|
| + * @param {bool} enabled Whether autolaunch is enabled or or not.
|
| + * @private
|
| + */
|
| + updateAutoLaunchState_: function(enabled) {
|
| + $('auto-launch-option').hidden = false;
|
| + $('auto-launch').checked = enabled;
|
| + },
|
| +
|
| + /**
|
| * Called when the value of the instant.confirm_dialog_shown preference
|
| * changes. Cache this value.
|
| * @param {Event} event Change event.
|
| @@ -475,6 +487,14 @@
|
| },
|
|
|
| /**
|
| + * Sets or clear whether Chrome should Auto-launch on computer startup.
|
| + * @private
|
| + */
|
| + handleAutoLaunchChanged_: function() {
|
| + chrome.send('toggleAutoLaunch', [$('auto-launch').checked]);
|
| + },
|
| +
|
| + /**
|
| * Sends an asynchronous request for new autocompletion suggestions for the
|
| * the given query. When new suggestions are available, the C++ handler will
|
| * call updateAutocompleteSuggestions_.
|
| @@ -617,6 +637,7 @@
|
| 'setThemesResetButtonEnabled',
|
| 'updateAccountPicture',
|
| 'updateAutocompleteSuggestions',
|
| + 'updateAutoLaunchState',
|
| 'updateHomePageLabel',
|
| 'updateSearchEngines',
|
| 'updateStartupPages',
|
|
|