Chromium Code Reviews| 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 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; | 9 var HotwordSearchSettingIndicator = options.HotwordSearchSettingIndicator; |
| 10 | 10 |
| (...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 241 $('profiles-create').onclick = function(event) { | 241 $('profiles-create').onclick = function(event) { |
| 242 ManageProfileOverlay.showCreateDialog(); | 242 ManageProfileOverlay.showCreateDialog(); |
| 243 }; | 243 }; |
| 244 if (OptionsPage.isSettingsApp()) { | 244 if (OptionsPage.isSettingsApp()) { |
| 245 $('profiles-app-list-switch').onclick = function(event) { | 245 $('profiles-app-list-switch').onclick = function(event) { |
| 246 var selectedProfile = self.getSelectedProfileItem_(); | 246 var selectedProfile = self.getSelectedProfileItem_(); |
| 247 chrome.send('switchAppListProfile', [selectedProfile.filePath]); | 247 chrome.send('switchAppListProfile', [selectedProfile.filePath]); |
| 248 }; | 248 }; |
| 249 } | 249 } |
| 250 $('profiles-manage').onclick = function(event) { | 250 $('profiles-manage').onclick = function(event) { |
| 251 chrome.send('refreshGAIAPicture'); | |
|
Evan Stade
2014/05/07 22:38:55
why isn't this in ManageProfileOverlay.showManageD
noms (inactive)
2014/05/08 01:02:29
showManageDialog is also called by setProfilesInfo
Evan Stade
2014/05/08 01:09:57
seems like the info cache shouldn't be updated if
noms (inactive)
2014/05/08 15:29:06
We would have to do a pixel-by-pixel check when we
Evan Stade
2014/05/14 03:09:55
Are you suggesting that checking the pixels is goi
noms (inactive)
2014/05/20 20:08:57
setProfilesInfo_ calls ManageProfileOverlay.showMa
| |
| 251 ManageProfileOverlay.showManageDialog(); | 252 ManageProfileOverlay.showManageDialog(); |
| 252 }; | 253 }; |
| 253 $('profiles-delete').onclick = function(event) { | 254 $('profiles-delete').onclick = function(event) { |
| 254 var selectedProfile = self.getSelectedProfileItem_(); | 255 var selectedProfile = self.getSelectedProfileItem_(); |
| 255 if (selectedProfile) | 256 if (selectedProfile) |
| 256 ManageProfileOverlay.showDeleteDialog(selectedProfile); | 257 ManageProfileOverlay.showDeleteDialog(selectedProfile); |
| 257 }; | 258 }; |
| 258 if (loadTimeData.getBoolean('profileIsManaged')) { | 259 if (loadTimeData.getBoolean('profileIsManaged')) { |
| 259 $('profiles-create').disabled = true; | 260 $('profiles-create').disabled = true; |
| 260 $('profiles-delete').disabled = true; | 261 $('profiles-delete').disabled = true; |
| (...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1815 BrowserOptions.getLoggedInUsername = function() { | 1816 BrowserOptions.getLoggedInUsername = function() { |
| 1816 return BrowserOptions.getInstance().username_; | 1817 return BrowserOptions.getInstance().username_; |
| 1817 }; | 1818 }; |
| 1818 } | 1819 } |
| 1819 | 1820 |
| 1820 // Export | 1821 // Export |
| 1821 return { | 1822 return { |
| 1822 BrowserOptions: BrowserOptions | 1823 BrowserOptions: BrowserOptions |
| 1823 }; | 1824 }; |
| 1824 }); | 1825 }); |
| OLD | NEW |