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

Issue 2166713002: ImageCapture: replace Mojo String/Array with stl/wtf string/vector (Closed)

Created:
4 years, 5 months ago by mcasas
Modified:
4 years, 5 months ago
Reviewers:
haraken, esprehn, yzshen1, Wez
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, posciak+watch_chromium.org, viettrungluu+watch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, darin-cc_chromium.org, mcasas+watch+vc_chromium.org, blink-reviews, alokp+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

ImageCapture: replace Mojo String/Array with stl/wtf string/vector This CL nukes the usage of mojo::String and mojo::Array<> after [1], so where it was mojo::String it now reads std::string or WTF::String and also mojo::Array<> is replaced with std::vector or WTF::Vector, as appropriate. [1] https://groups.google.com/a/chromium.org/forum/?utm_medium=email&utm_source=footer#!msg/chromium-mojo/2SHvKyahLGg/sU61P0IIBgAJ BUG=624136, 518807 TBR=xhwang@chromium.org for the trivial change in media/mojo/interfaces/BUILD.gn Committed: https://crrev.com/53d04735fed4c229ba5757ed38f4150dd4c15d7f Cr-Commit-Position: refs/heads/master@{#406776}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : wez@ comments #

Patch Set 3 : Added TODO to use mojo typemappings, https://crbug.com/630040 #

Total comments: 2

Patch Set 4 : forgot media/.../mojo_bindings.gyp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -47 lines) Patch
M content/browser/media/capture/image_capture_impl.h View 2 chunks +3 lines, -4 lines 0 comments Download
M content/browser/media/capture/image_capture_impl.cc View 1 2 6 chunks +13 lines, -10 lines 0 comments Download
M media/capture/video/android/video_capture_device_android.cc View 2 chunks +1 line, -3 lines 0 comments Download
M media/capture/video/fake_video_capture_device.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M media/capture/video/fake_video_capture_device_unittest.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M media/capture/video/mac/video_capture_device_mac.mm View 1 chunk +2 lines, -3 lines 0 comments Download
M media/capture/video/video_capture_device.h View 1 chunk +1 line, -1 line 0 comments Download
M media/capture/video/video_capture_device_unittest.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M media/mojo/interfaces/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M media/mojo/interfaces/mojo_bindings.gyp View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/imagecapture/ImageCapture.cpp View 1 chunk +4 lines, -6 lines 0 comments Download

Messages

Total messages: 43 (22 generated)
mcasas
yzshen@ PTAL
4 years, 5 months ago (2016-07-20 17:38:27 UTC) #6
yzshen1
LGTM Yay!
4 years, 5 months ago (2016-07-20 17:40:53 UTC) #7
mcasas
wez@: Owners RS content/browser/media/capture plz esprehn@ Owners RS third_party/WebKit/Source/modules/imagecapture
4 years, 5 months ago (2016-07-20 17:43:33 UTC) #9
haraken
On 2016/07/20 17:43:33, mcasas wrote: > wez@: Owners RS content/browser/media/capture plz > > esprehn@ Owners ...
4 years, 5 months ago (2016-07-20 17:43:56 UTC) #10
Wez
https://codereview.chromium.org/2166713002/diff/40001/content/browser/media/capture/image_capture_impl.cc File content/browser/media/capture/image_capture_impl.cc (right): https://codereview.chromium.org/2166713002/diff/40001/content/browser/media/capture/image_capture_impl.cc#newcode57 content/browser/media/capture/image_capture_impl.cc:57: base::Bind(callback, mime_type, data)); |data| was previously move()'d, which was ...
4 years, 5 months ago (2016-07-20 18:52:07 UTC) #11
mcasas
https://codereview.chromium.org/2166713002/diff/40001/content/browser/media/capture/image_capture_impl.cc File content/browser/media/capture/image_capture_impl.cc (right): https://codereview.chromium.org/2166713002/diff/40001/content/browser/media/capture/image_capture_impl.cc#newcode57 content/browser/media/capture/image_capture_impl.cc:57: base::Bind(callback, mime_type, data)); On 2016/07/20 18:52:07, Wez wrote: > ...
4 years, 5 months ago (2016-07-20 22:57:02 UTC) #12
yzshen1
https://codereview.chromium.org/2166713002/diff/40001/content/browser/media/capture/image_capture_impl.cc File content/browser/media/capture/image_capture_impl.cc (right): https://codereview.chromium.org/2166713002/diff/40001/content/browser/media/capture/image_capture_impl.cc#newcode57 content/browser/media/capture/image_capture_impl.cc:57: base::Bind(callback, mime_type, data)); On 2016/07/20 22:57:01, mcasas wrote: > ...
4 years, 5 months ago (2016-07-20 23:05:13 UTC) #13
Wez
Basically I defer to Yuzhu's Mojo expertise! https://codereview.chromium.org/2166713002/diff/40001/content/browser/media/capture/image_capture_impl.cc File content/browser/media/capture/image_capture_impl.cc (right): https://codereview.chromium.org/2166713002/diff/40001/content/browser/media/capture/image_capture_impl.cc#newcode57 content/browser/media/capture/image_capture_impl.cc:57: base::Bind(callback, mime_type, ...
4 years, 5 months ago (2016-07-20 23:19:55 UTC) #14
yzshen1
https://codereview.chromium.org/2166713002/diff/40001/content/browser/media/capture/image_capture_impl.cc File content/browser/media/capture/image_capture_impl.cc (right): https://codereview.chromium.org/2166713002/diff/40001/content/browser/media/capture/image_capture_impl.cc#newcode57 content/browser/media/capture/image_capture_impl.cc:57: base::Bind(callback, mime_type, data)); On 2016/07/20 23:19:54, Wez wrote: > ...
4 years, 5 months ago (2016-07-20 23:27:36 UTC) #15
mcasas
Done adding a TODO()
4 years, 5 months ago (2016-07-20 23:46:06 UTC) #16
Wez
LGTM (is there a looks-horrible-to-me-but-OK-I-suppose?) https://codereview.chromium.org/2166713002/diff/70001/content/browser/media/capture/image_capture_impl.cc File content/browser/media/capture/image_capture_impl.cc (right): https://codereview.chromium.org/2166713002/diff/70001/content/browser/media/capture/image_capture_impl.cc#newcode61 content/browser/media/capture/image_capture_impl.cc:61: base::Passed(const_cast<std::vector<uint8_t>*>(&data)))); nit: I take ...
4 years, 5 months ago (2016-07-21 00:10:46 UTC) #17
mcasas
https://codereview.chromium.org/2166713002/diff/70001/content/browser/media/capture/image_capture_impl.cc File content/browser/media/capture/image_capture_impl.cc (right): https://codereview.chromium.org/2166713002/diff/70001/content/browser/media/capture/image_capture_impl.cc#newcode61 content/browser/media/capture/image_capture_impl.cc:61: base::Passed(const_cast<std::vector<uint8_t>*>(&data)))); On 2016/07/21 00:10:46, Wez wrote: > nit: I ...
4 years, 5 months ago (2016-07-21 00:25:58 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2166713002/70001
4 years, 5 months ago (2016-07-21 00:26:20 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/204813)
4 years, 5 months ago (2016-07-21 00:49:21 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2166713002/70001
4 years, 5 months ago (2016-07-21 00:53:37 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_gyp_rel on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_gyp_rel/builds/2961)
4 years, 5 months ago (2016-07-21 01:10:02 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2166713002/90001
4 years, 5 months ago (2016-07-21 03:14:41 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/266381)
4 years, 5 months ago (2016-07-21 04:14:42 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2166713002/90001
4 years, 5 months ago (2016-07-21 04:16:40 UTC) #39
commit-bot: I haz the power
Committed patchset #4 (id:90001)
4 years, 5 months ago (2016-07-21 06:01:17 UTC) #41
commit-bot: I haz the power
4 years, 5 months ago (2016-07-21 06:03:08 UTC) #43
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/53d04735fed4c229ba5757ed38f4150dd4c15d7f
Cr-Commit-Position: refs/heads/master@{#406776}

Powered by Google App Engine
This is Rietveld 408576698