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

Issue 2201763002: Switch on use_new_wrapper_types mode for content/common. (Closed)

Created:
4 years, 4 months ago by leonhsl(Using Gerrit)
Modified:
4 years, 4 months ago
Reviewers:
michaeln, kinuko, yzshen1
CC:
chromium-reviews, Dirk Pranke, creis+watch_chromium.org, qsr+mojo_chromium.org, mlamouri+watch-content_chromium.org, viettrungluu+watch_chromium.org, nasko+codewatch_chromium.org, jam, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin-cc_chromium.org, darin (slow to review), ben+mojo_chromium.org, jshin+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch on use_new_wrapper_types mode for content/common. Uses STL vector/string types instead of mojo::{Array,String} for all mojoms in content/common. content/common/frame.mojom content/common/render_frame_message_filter.mojom content/common/render_widget_window_tree_client_factory.mojom content/common/service_worker/embedded_worker_setup.mojom content/common/storage_partition_service.mojom content/common/leveldb_wrapper.mojom content/common/image_downloader/image_downloader.mojom content/common/websocket.mojom BUG=624136 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation Committed: https://crrev.com/c222853dd0d023e96fd00daabb6e610069dc606d Cr-Commit-Position: refs/heads/master@{#412176}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address comments from Lei and Michael #

Total comments: 10

Patch Set 3 : Address comments from Yuzhu and Michael #

Patch Set 4 : Do not use base::Optional<> for absolutely non-null value #

Patch Set 5 : Rebase only #

Patch Set 6 : Rebase only #

Patch Set 7 : Fix trybots #

Patch Set 8 : Fix trybots #

Patch Set 9 : Rebase, add changes for websocket.mojom #

Total comments: 4

Patch Set 10 : Address comments from kinuko #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -167 lines) Patch
M content/browser/frame_host/render_frame_message_filter.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_message_filter.cc View 1 2 3 4 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_message_filter_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +11 lines, -7 lines 0 comments Download
M content/browser/leveldb_wrapper_impl.h View 1 2 3 4 chunks +14 lines, -10 lines 0 comments Download
M content/browser/leveldb_wrapper_impl.cc View 1 2 3 8 chunks +41 lines, -41 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -7 lines 0 comments Download
M content/browser/websockets/websocket_impl.h View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -6 lines 0 comments Download
M content/browser/websockets/websocket_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +8 lines, -13 lines 0 comments Download
M content/common/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M content/content_common_mojo_bindings.gyp View 1 2 3 4 6 7 8 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/dom_storage/local_storage_cached_area.h View 1 chunk +15 lines, -15 lines 0 comments Download
M content/renderer/dom_storage/local_storage_cached_area.cc View 1 2 3 4 5 6 7 8 9 10 chunks +45 lines, -35 lines 0 comments Download
M content/renderer/image_downloader/image_downloader_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/renderer_webcookiejar_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/websockethandle_impl.h View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -7 lines 0 comments Download
M content/renderer/websockethandle_impl.cc View 1 2 3 4 5 6 7 8 6 chunks +13 lines, -16 lines 0 comments Download

Messages

Total messages: 93 (68 generated)
leonhsl(Using Gerrit)
Hi, would you PTAL at this? Thanks. Yuzhu: For review of everything michaeln@: For review ...
4 years, 4 months ago (2016-08-01 09:37:28 UTC) #7
Lei Zhang
On 2016/08/01 09:37:28, leonhsl wrote: > thestig@: For review of base/strings/ I'm not sure we ...
4 years, 4 months ago (2016-08-01 17:08:42 UTC) #8
michaeln
https://codereview.chromium.org/2201763002/diff/1/content/browser/leveldb_wrapper_impl.cc File content/browser/leveldb_wrapper_impl.cc (right): https://codereview.chromium.org/2201763002/diff/1/content/browser/leveldb_wrapper_impl.cc#newcode105 content/browser/leveldb_wrapper_impl.cc:105: old_value.swap(*(found->second)); Does this mutate the map? I think it ...
4 years, 4 months ago (2016-08-02 00:28:30 UTC) #9
leonhsl(Using Gerrit)
On 2016/08/01 17:08:42, Lei Zhang wrote: > On 2016/08/01 09:37:28, leonhsl wrote: > > thestig@: ...
4 years, 4 months ago (2016-08-02 03:10:02 UTC) #10
leonhsl(Using Gerrit)
Uploaded ps#2: -- Moved Uint8VectorToString16 and String16ToUint8Vector impl into local_storage_cached_area.cc. -- Addressed Michael's comments in ...
4 years, 4 months ago (2016-08-02 11:11:05 UTC) #13
yzshen1
https://codereview.chromium.org/2201763002/diff/20001/content/browser/leveldb_wrapper_impl.cc File content/browser/leveldb_wrapper_impl.cc (right): https://codereview.chromium.org/2201763002/diff/20001/content/browser/leveldb_wrapper_impl.cc#newcode43 content/browser/leveldb_wrapper_impl.cc:43: count += (pair.first.size(), pair.second.value().size()); pair.second may be null, right? ...
4 years, 4 months ago (2016-08-02 16:20:09 UTC) #16
michaeln
https://codereview.chromium.org/2201763002/diff/20001/content/browser/leveldb_wrapper_impl.cc File content/browser/leveldb_wrapper_impl.cc (right): https://codereview.chromium.org/2201763002/diff/20001/content/browser/leveldb_wrapper_impl.cc#newcode43 content/browser/leveldb_wrapper_impl.cc:43: count += (pair.first.size(), pair.second.value().size()); On 2016/08/02 16:20:09, yzshen1 wrote: ...
4 years, 4 months ago (2016-08-02 20:31:54 UTC) #17
leonhsl(Using Gerrit)
Uploaded ps#3 to address comments, PTAnL, Thanks. https://codereview.chromium.org/2201763002/diff/20001/content/browser/leveldb_wrapper_impl.cc File content/browser/leveldb_wrapper_impl.cc (right): https://codereview.chromium.org/2201763002/diff/20001/content/browser/leveldb_wrapper_impl.cc#newcode43 content/browser/leveldb_wrapper_impl.cc:43: count += ...
4 years, 4 months ago (2016-08-03 03:38:48 UTC) #20
yzshen1
https://codereview.chromium.org/2201763002/diff/20001/content/browser/leveldb_wrapper_impl.cc File content/browser/leveldb_wrapper_impl.cc (right): https://codereview.chromium.org/2201763002/diff/20001/content/browser/leveldb_wrapper_impl.cc#newcode100 content/browser/leveldb_wrapper_impl.cc:100: if (*(found->second) == value) { On 2016/08/03 03:38:48, leonhsl ...
4 years, 4 months ago (2016-08-03 17:23:05 UTC) #23
leonhsl(Using Gerrit)
Uploaded ps#4 to address comments from Yuzhu, and several other ps to do rebase. Would ...
4 years, 4 months ago (2016-08-09 07:56:51 UTC) #54
yzshen1
lgtm
4 years, 4 months ago (2016-08-09 16:14:34 UTC) #55
Lei Zhang
Not sure why I'm on the reviewers list. Is there something in particular I should ...
4 years, 4 months ago (2016-08-09 16:20:20 UTC) #56
leonhsl(Using Gerrit)
As this CL has no changes for base/ now, -thestig@ from reviewers list. And, soft ...
4 years, 4 months ago (2016-08-10 02:52:09 UTC) #58
michaeln
lgtm
4 years, 4 months ago (2016-08-10 19:59:04 UTC) #59
leonhsl(Using Gerrit)
Ping John for rubber stamp of content/ ;-)
4 years, 4 months ago (2016-08-11 11:38:31 UTC) #60
leonhsl(Using Gerrit)
-jam@, I suppose I'd better invite more specific content/ OWNER instead of John. +kinuko@, Would ...
4 years, 4 months ago (2016-08-15 02:39:51 UTC) #62
leonhsl(Using Gerrit)
Hi, Yuzhu, would you PTAL at the trybot compile error? Thanks. Seems compiler is trying ...
4 years, 4 months ago (2016-08-15 08:32:06 UTC) #72
yzshen1
On 2016/08/15 08:32:06, leonhsl wrote: > Hi, Yuzhu, would you PTAL at the trybot compile ...
4 years, 4 months ago (2016-08-15 17:23:49 UTC) #73
yzshen1
On 2016/08/15 08:32:06, leonhsl wrote: > Hi, Yuzhu, would you PTAL at the trybot compile ...
4 years, 4 months ago (2016-08-15 17:23:52 UTC) #74
yzshen1
Hi, I have got a fix pending for review: https://codereview.chromium.org/2244363003/
4 years, 4 months ago (2016-08-15 20:02:29 UTC) #75
kinuko
lgtm % some nits https://codereview.chromium.org/2201763002/diff/160001/content/renderer/dom_storage/local_storage_cached_area.cc File content/renderer/dom_storage/local_storage_cached_area.cc (right): https://codereview.chromium.org/2201763002/diff/160001/content/renderer/dom_storage/local_storage_cached_area.cc#newcode28 content/renderer/dom_storage/local_storage_cached_area.cc:28: return base::string16(reinterpret_cast<const base::char16*>(&input.front()), nit: use ...
4 years, 4 months ago (2016-08-15 23:05:55 UTC) #76
leonhsl(Using Gerrit)
Thanks all! Uploaded ps#10 to address nits from kinuko@ and all trybots got green, will ...
4 years, 4 months ago (2016-08-16 05:54:33 UTC) #87
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/2201763002/180001
4 years, 4 months ago (2016-08-16 05:55:42 UTC) #90
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 4 months ago (2016-08-16 05:59:40 UTC) #91
commit-bot: I haz the power
4 years, 4 months ago (2016-08-16 06:02:12 UTC) #93
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c222853dd0d023e96fd00daabb6e610069dc606d
Cr-Commit-Position: refs/heads/master@{#412176}

Powered by Google App Engine
This is Rietveld 408576698