| Index: chrome/browser/resources/options/chromeos/change_picture_options.js
|
| diff --git a/chrome/browser/resources/options/chromeos/change_picture_options.js b/chrome/browser/resources/options/chromeos/change_picture_options.js
|
| index b70d55c1ebb7c65ed68710f260dc4db619939fde..38dff087d780856a13511ef9c399b791ad7340ac 100644
|
| --- a/chrome/browser/resources/options/chromeos/change_picture_options.js
|
| +++ b/chrome/browser/resources/options/chromeos/change_picture_options.js
|
| @@ -393,8 +393,9 @@ cr.define('options', function() {
|
| chrome.send('selectImage', [url]);
|
| }
|
| // Start/stop camera on (de)selection.
|
| - if (!imageGrid.inProgramSelection) {
|
| - if (imageGrid.selectionType == 'camera' && !imageGrid.cameraOnline) {
|
| + if (!imageGrid.inProgramSelection &&
|
| + imageGrid.selectionType != e.oldSelectionType) {
|
| + if (imageGrid.selectionType == 'camera') {
|
| imageGrid.checkCameraPresence(
|
| function() { // When present.
|
| // Start capture if camera is still the selected item.
|
| @@ -403,8 +404,7 @@ cr.define('options', function() {
|
| function() { // When absent.
|
| return true; // Check again after some time.
|
| });
|
| - } else if (imageGrid.selectionType != 'camera' &&
|
| - imageGrid.cameraOnline) {
|
| + } else {
|
| imageGrid.stopCamera();
|
| }
|
| }
|
|
|