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

Issue 2799563002: Replace usage of WebVector::isEmpty with WebVector::empty().

Created:
3 years, 8 months ago by slangley
Modified:
3 years, 8 months ago
Reviewers:
haraken, dglazkov, pfeldman
CC:
esprehn, avayvod+watch_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chfremer+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dglazkov+blink, emircan+watch+mediarecorder_chromium.org, eric.carlson_apple.com, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jam, jasonroberts+watch_google.com, jochen+watch_chromium.org, kinuko+watch, mcasas+mediarecorder_chromium.org, miu+watch_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, Peter Beverloo, posciak+watch_chromium.org, Srirama, xjz+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace usage of WebVector::isEmpty with WebVector::empty(). std:: containers expose empty() to check if a contain is empty or not, this change will bring that the WebVector API is inline with these expectations. BUG=708389

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -31 lines) Patch
M content/child/webmessageportchannel_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/media_stream_renderer_factory_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/peer_connection_tracker.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/renderer/media/user_media_client_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/video_track_to_pepper_adapter.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media_recorder/media_recorder_handler.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/test_runner/spell_check_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/blink/key_system_config_selector.cc View 4 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/modules/cachestorage/InspectorCacheStorageAgent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/crypto/NormalizeAlgorithm.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/encryptedmedia/MediaKeySystemAccess.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/WebVectorTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VirtualTimeTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebImageTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebVector.h View 1 chunk +0 lines, -2 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 30 (7 generated)
slangley
3 years, 8 months ago (2017-04-05 05:34:43 UTC) #2
haraken
This CL LGTM. (That said, I think I should add that removing WebVector would not ...
3 years, 8 months ago (2017-04-05 05:41:14 UTC) #3
esprehn
WebVector serves the purpose of preventing people from using std::vector in core or web. It's ...
3 years, 8 months ago (2017-04-05 06:50:15 UTC) #5
haraken
On 2017/04/05 06:50:15, esprehn wrote: > WebVector serves the purpose of preventing people from using ...
3 years, 8 months ago (2017-04-05 06:54:15 UTC) #6
slangley
As WebVector is essentially a wrapper around std::vector it wasn't (and probably still isn't) clear ...
3 years, 8 months ago (2017-04-05 07:13:55 UTC) #7
slangley
As WebVector is essentially a wrapper around std::vector it wasn't (and probably still isn't) clear ...
3 years, 8 months ago (2017-04-05 07:13:57 UTC) #8
esprehn
If the public apis use std::vector then you have to use it in core since ...
3 years, 8 months ago (2017-04-05 07:14:24 UTC) #9
slangley
Is there a technical reason you would not want to use std::vector directly in place ...
3 years, 8 months ago (2017-04-05 07:47:20 UTC) #10
slangley
Is there a technical reason you would not want to use std::vector directly in place ...
3 years, 8 months ago (2017-04-05 07:47:20 UTC) #11
haraken
On 2017/04/05 07:47:20, slangley wrote: > Is there a technical reason you would not want ...
3 years, 8 months ago (2017-04-05 07:49:37 UTC) #12
slangley
Yes I understand there is a separate need that is being met by WTF:: container ...
3 years, 8 months ago (2017-04-05 07:51:32 UTC) #13
slangley
Yes I understand there is a separate need that is being met by WTF:: container ...
3 years, 8 months ago (2017-04-05 07:57:02 UTC) #14
esprehn
On 2017/04/05 at 07:47:20, slangley wrote: > Is there a technical reason you would not ...
3 years, 8 months ago (2017-04-05 08:36:18 UTC) #15
esprehn
btw I don't have authority here, I was just giving history and why I made ...
3 years, 8 months ago (2017-04-07 00:06:46 UTC) #17
dcheng
On 2017/04/07 00:06:58, esprehn wrote: > mailto:esprehn@chromium.org changed reviewers: > - mailto:esprehn@chromium.org FWIW, I'm OK ...
3 years, 8 months ago (2017-04-07 00:11:00 UTC) #19
haraken
On 2017/04/07 00:11:00, dcheng wrote: > On 2017/04/07 00:06:58, esprehn wrote: > > mailto:esprehn@chromium.org changed ...
3 years, 8 months ago (2017-04-07 00:56:59 UTC) #20
slangley
It seems the overall sentiment is that there are various not immediately obvious reasons to ...
3 years, 8 months ago (2017-04-07 01:35:12 UTC) #21
haraken
On 2017/04/07 01:35:12, slangley wrote: > It seems the overall sentiment is that there are ...
3 years, 8 months ago (2017-04-07 01:38:31 UTC) #22
slangley
It seems the overall sentiment is that there are various not immediately obvious reasons to ...
3 years, 8 months ago (2017-04-07 01:41:55 UTC) #23
slangley
ptal. I updated the bug & description to highlight that this is purely to make ...
3 years, 8 months ago (2017-04-07 01:45:32 UTC) #25
haraken
On 2017/04/07 01:45:32, slangley wrote: > ptal. > > I updated the bug & description ...
3 years, 8 months ago (2017-04-07 01:49:19 UTC) #26
slangley
+esprehn@ - for content/child & content/renderer OWNERS. +pfeldman@ - for content/shell/test_runner.
3 years, 8 months ago (2017-04-07 02:47:43 UTC) #28
pfeldman
3 years, 8 months ago (2017-04-07 18:20:54 UTC) #30
shell lgtm

Powered by Google App Engine
This is Rietveld 408576698