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

Issue 2654923002: Make blink::protocol::StringBuilder a distinct type from WTF::StringBuilder. (Closed)

Created:
3 years, 11 months ago by Łukasz Anforowicz
Modified:
3 years, 10 months ago
Reviewers:
dgozman
CC:
chromium-reviews, caseq+blink_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, kozyatinskiy+blink_chromium.org, dcheng
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adapt StringBuilder's append and toString methods via StringUtil helper. This is needed to insulate generated code from blink::protocol namespace from naming changes that we plan to do in the Great Blink Rename (which in particular will change wtf::StringBuilder::toString into ToString, and similarily will rename reserveCapacity and append methods). This CL also includes roll of inspector_protocol which starts to generate code that uses the new methods of StringUtil adapter: rolling third_party/inspector to 1a131872167f0f7653629326891aa3ec94417f27. BUG=683447 Review-Url: https://codereview.chromium.org/2654923002 Cr-Commit-Position: refs/heads/master@{#446773} Committed: https://chromium.googlesource.com/chromium/src/+/31c53d7095041a1fdd3e17a0c84d23f411f7933a

Patch Set 1 #

Patch Set 2 : has-a is better than is-a. #

Total comments: 1

Patch Set 3 : Using StringUtil adapter instead. #

Patch Set 4 : Cover third_party/inspector_protocol changes. #

Total comments: 1

Patch Set 5 : In case of blink::protocol, builderAppend needs to take |char16_t| instead of |char|. #

Patch Set 6 : s/char16_t/UChar/ #

Patch Set 7 : Adding appropriate revision number to README.chromium. #

Patch Set 8 : Corrected the revision number... :-/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -39 lines) Patch
M components/ui_devtools/string_util.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M content/browser/devtools/protocol_string.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/V8InspectorString.h View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/inspector_protocol/README.chromium View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/inspector_protocol/lib/ErrorSupport_cpp.template View 1 2 3 2 chunks +8 lines, -8 lines 0 comments Download
M third_party/inspector_protocol/lib/Parser_cpp.template View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/inspector_protocol/lib/Values_cpp.template View 1 2 3 10 chunks +27 lines, -27 lines 0 comments Download

Messages

Total messages: 49 (38 generated)
Łukasz Anforowicz
dgozman@, can you PTAL? This CL is a Good Thing (tm), regardless of the Great ...
3 years, 11 months ago (2017-01-24 22:17:48 UTC) #3
Łukasz Anforowicz
On 2017/01/24 22:17:48, Łukasz Anforowicz wrote: > dgozman@, can you PTAL? This CL is a ...
3 years, 11 months ago (2017-01-25 00:12:10 UTC) #8
dgozman
https://codereview.chromium.org/2654923002/diff/20001/third_party/WebKit/Source/core/inspector/V8InspectorString.h File third_party/WebKit/Source/core/inspector/V8InspectorString.h (right): https://codereview.chromium.org/2654923002/diff/20001/third_party/WebKit/Source/core/inspector/V8InspectorString.h#newcode69 third_party/WebKit/Source/core/inspector/V8InspectorString.h:69: static void builderReserve(StringBuilder& builder, unsigned capacity) { Similarly to ...
3 years, 11 months ago (2017-01-25 20:18:24 UTC) #9
Łukasz Anforowicz
dgozman@, can you please take another look? Can you please help me figure out how ...
3 years, 11 months ago (2017-01-26 19:50:03 UTC) #12
dgozman
The code looks good. Questions below make me thing we need a "contribution guide" somewhere ...
3 years, 11 months ago (2017-01-26 19:56:14 UTC) #15
Łukasz Anforowicz
dgozman@, could you PTAL? https://codereview.chromium.org/2654923002/diff/60001/third_party/inspector_protocol/README.chromium File third_party/inspector_protocol/README.chromium (right): https://codereview.chromium.org/2654923002/diff/60001/third_party/inspector_protocol/README.chromium#newcode5 third_party/inspector_protocol/README.chromium:5: Revision: DO NOT SUBMIT / ...
3 years, 11 months ago (2017-01-26 23:00:44 UTC) #31
dgozman
Please change the patch title and description to reflect the contents, and include the part ...
3 years, 11 months ago (2017-01-26 23:11:43 UTC) #32
Łukasz Anforowicz
On 2017/01/26 23:11:43, dgozman wrote: > Please change the patch title and description to reflect ...
3 years, 10 months ago (2017-01-27 17:16:24 UTC) #39
dgozman
On 2017/01/27 17:16:24, Łukasz Anforowicz wrote: > On 2017/01/26 23:11:43, dgozman wrote: > > Please ...
3 years, 10 months ago (2017-01-27 20:02:14 UTC) #43
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/2654923002/140001
3 years, 10 months ago (2017-01-27 21:09:36 UTC) #46
commit-bot: I haz the power
3 years, 10 months ago (2017-01-27 21:19:45 UTC) #49
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/31c53d7095041a1fdd3e17a0c84d...

Powered by Google App Engine
This is Rietveld 408576698