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

Issue 2345893002: Make CString more similar to WTF::String. (Closed)

Created:
4 years, 3 months ago by esprehn
Modified:
4 years, 3 months ago
Reviewers:
haraken, Yuta Kitamura
CC:
blink-reviews, blink-reviews-wtf_chromium.org, chromium-reviews, Mikhail
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make CString more similar to WTF::String. Nothing uses the copy on write feature, and it's implemented in a somewhat confusing way since mutableData() would create a copy of the underlying buffer, but any instances created from the CString after calling mutableData() would still share with the mutable buffer allowing modification of all of the CString instances. Instead lets just remove this feature. Doing this makes CString and CStringBuffer immutable and makes their API look very similar to String and StringImpl. A future patch will rename CStringBuffer to CStringImpl to match. I also threw in a bunch of documentation comments. :) Committed: https://crrev.com/ff1792acd2b28dee67159754e0c525031adc4c40 Cr-Commit-Position: refs/heads/master@{#419115}

Patch Set 1 #

Patch Set 2 : typos. #

Patch Set 3 : asserts. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -93 lines) Patch
M third_party/WebKit/Source/wtf/text/CString.h View 1 2 chunks +41 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/CString.cpp View 1 2 3 chunks +12 lines, -55 lines 0 comments Download
M third_party/WebKit/Source/wtf/text/CStringTest.cpp View 1 chunk +0 lines, -12 lines 0 comments Download

Messages

Total messages: 23 (18 generated)
esprehn
4 years, 3 months ago (2016-09-16 06:05:36 UTC) #17
haraken
LGTM
4 years, 3 months ago (2016-09-16 06:12:28 UTC) #18
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/2345893002/40001
4 years, 3 months ago (2016-09-16 06:42:56 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-16 06:47:44 UTC) #21
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 06:50:02 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ff1792acd2b28dee67159754e0c525031adc4c40
Cr-Commit-Position: refs/heads/master@{#419115}

Powered by Google App Engine
This is Rietveld 408576698