Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(909)

Unified Diff: third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp

Issue 2827693003: ImageCapture: don't list |torch| in Capabilities if not supported (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
diff --git a/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
index ca93ddcc4e328f35a9444acc7adc1d5b65b32c80..6832f67d461840f1c59eb1f5cc6b14290a208b02 100644
--- a/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
+++ b/third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp
@@ -636,7 +636,8 @@ void ImageCapture::OnCapabilitiesUpdateInternal(
settings_.setZoom(capabilities.zoom->current);
}
- capabilities_.setTorch(capabilities.supports_torch);
+ if (capabilities.supports_torch)
+ capabilities_.setTorch(capabilities.supports_torch);
if (capabilities.supports_torch)
settings_.setTorch(capabilities.torch);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698