| Index: chrome/browser/resources/options/browser_options.js
|
| diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
|
| index daef4fbea5dc17b4d60324aae9dfafea96c92e74..d607f789375a9221dc8b9a38cbdbc3f86acc549e 100644
|
| --- a/chrome/browser/resources/options/browser_options.js
|
| +++ b/chrome/browser/resources/options/browser_options.js
|
| @@ -180,6 +180,12 @@ cr.define('options', function() {
|
| $('profiles-create').onclick = function(event) {
|
| ManageProfileOverlay.showCreateDialog();
|
| };
|
| + if (OptionsPage.isSettingsApp()) {
|
| + $('profiles-app-list-switch').onclick = function(event) {
|
| + var selectedProfile = self.getSelectedProfileItem_();
|
| + chrome.send('switchAppListProfile', [selectedProfile.filePath]);
|
| + };
|
| + }
|
| $('profiles-manage').onclick = function(event) {
|
| ManageProfileOverlay.showManageDialog();
|
| };
|
| @@ -918,6 +924,10 @@ cr.define('options', function() {
|
| else
|
| $('profiles-manage').title = '';
|
| $('profiles-delete').disabled = !hasSelection && !hasSingleProfile;
|
| + if (OptionsPage.isSettingsApp()) {
|
| + $('profiles-app-list-switch').disabled = !hasSelection ||
|
| + selectedProfile.isCurrentProfile;
|
| + }
|
| var importData = $('import-data');
|
| if (importData) {
|
| importData.disabled = $('import-data').disabled = hasSelection &&
|
| @@ -939,6 +949,8 @@ cr.define('options', function() {
|
| $('profiles-delete').textContent = hasSingleProfile ?
|
| loadTimeData.getString('profilesDeleteSingle') :
|
| loadTimeData.getString('profilesDelete');
|
| + if (OptionsPage.isSettingsApp())
|
| + $('profiles-app-list-switch').hidden = hasSingleProfile;
|
| },
|
|
|
| /**
|
|
|