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

Unified Diff: media/capture/video/fake_video_capture_device.cc

Issue 2166713002: ImageCapture: replace Mojo String/Array with stl/wtf string/vector (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
Index: media/capture/video/fake_video_capture_device.cc
diff --git a/media/capture/video/fake_video_capture_device.cc b/media/capture/video/fake_video_capture_device.cc
index a8f4dc3f35db9fc641d834033c462add25acad3c..3a5f98a8536e3bf877d101c37205008aea42f35f 100644
--- a/media/capture/video/fake_video_capture_device.cc
+++ b/media/capture/video/fake_video_capture_device.cc
@@ -108,8 +108,7 @@ void DoTakeFakePhoto(VideoCaptureDevice::TakePhotoCallback callback,
std::vector<gfx::PNGCodec::Comment>(), &encoded_data);
DCHECK(result);
- callback.Run(mojo::String::From("image/png"),
- mojo::Array<uint8_t>::From(encoded_data));
+ callback.Run(std::string("image/png"), encoded_data);
Wez 2016/07/20 18:52:07 nit: Do you need the explicit std::string here?
mcasas 2016/07/20 22:57:01 Nope, removed. It wouldn't hurt performance becaus
}
FakeVideoCaptureDevice::FakeVideoCaptureDevice(BufferOwnership buffer_ownership,

Powered by Google App Engine
This is Rietveld 408576698