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

Issue 2800133003: Avoid duplicate functions: one AddStringToDigestor is enough (Closed)

Created:
3 years, 8 months ago by Daniel Bratell
Modified:
3 years, 5 months ago
Reviewers:
alph
CC:
chromium-reviews, caseq+blink_chromium.org, shans, rjwright, blink-reviews-animation_chromium.org, darktears, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, Eric Willigers, kozyatinskiy+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid duplicate functions: one AddStringToDigestor is enough There are two implementation of AddStringToDigestor. Beyond being one more than needed, they also conflict in jumbo builds. This patch merges the two AddStringToDigestor and removes the conflicting files from the jumbo exclusion list. Review-Url: https://codereview.chromium.org/2800133003 Cr-Commit-Position: refs/heads/master@{#485992} Committed: https://chromium.googlesource.com/chromium/src/+/0ba26ac61aba0f76c0c3d948126264af5b43cd8b

Patch Set 1 #

Total comments: 2

Patch Set 2 : fixup core/inspector license #

Patch Set 3 : Rebased past blink rename #

Patch Set 4 : Avoid duplicate functions/code: one AddStringToDigestor is enough. #

Total comments: 5

Patch Set 5 : New idea. Include the string type in the name. #

Total comments: 2

Patch Set 6 : Use utf-8 and get all data from the same object #

Total comments: 4

Patch Set 7 : Adding spacer lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -17 lines) Patch
A third_party/WebKit/Source/core/inspector/AddStringToDigestor.h View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/BUILD.gn View 1 2 3 5 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/DOMPatchSupport.cpp View 1 2 3 4 5 2 chunks +1 line, -7 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp View 1 2 3 5 2 chunks +1 line, -7 lines 0 comments Download

Messages

Total messages: 46 (30 generated)
Daniel Bratell
Please take a look.
3 years, 8 months ago (2017-04-07 19:51:31 UTC) #2
alph
https://codereview.chromium.org/2800133003/diff/1/third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp File third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp (right): https://codereview.chromium.org/2800133003/diff/1/third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp#newcode2 third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp:2: // Use of this source code is governed by ...
3 years, 8 months ago (2017-04-10 08:09:55 UTC) #7
Daniel Bratell
Doh, indeed. New version with more lines uploaded. https://codereview.chromium.org/2800133003/diff/1/third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp File third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp (right): https://codereview.chromium.org/2800133003/diff/1/third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp#newcode2 third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp:2: // ...
3 years, 8 months ago (2017-04-10 08:28:29 UTC) #8
Daniel Bratell
On 2017/04/10 08:28:29, Daniel Bratell wrote: > Doh, indeed. New version with more lines uploaded. ...
3 years, 8 months ago (2017-04-10 08:29:39 UTC) #9
alph
On 2017/04/10 08:29:39, Daniel Bratell wrote: > On 2017/04/10 08:28:29, Daniel Bratell wrote: > > ...
3 years, 7 months ago (2017-05-02 23:50:43 UTC) #14
Daniel Bratell
On 2017/05/02 23:50:43, alph wrote: > What's the current status of this CL? > Let's ...
3 years, 7 months ago (2017-05-03 08:47:23 UTC) #17
Daniel Bratell
alph, can you take a new look please?
3 years, 5 months ago (2017-07-04 13:11:48 UTC) #20
Daniel Bratell
alph, can you take a look please?
3 years, 5 months ago (2017-07-07 18:08:56 UTC) #25
alph
Sorry for delay, was on vacation. :-) https://codereview.chromium.org/2800133003/diff/60001/third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp File third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp (right): https://codereview.chromium.org/2800133003/diff/60001/third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp#newcode14 third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp:14: reinterpret_cast<const unsigned ...
3 years, 5 months ago (2017-07-08 01:16:24 UTC) #26
Daniel Bratell
alph, I made another solution since the functions were not identical but let me know ...
3 years, 5 months ago (2017-07-10 14:47:19 UTC) #29
alph
Don't you want to make the change to BUILD.gn ? https://codereview.chromium.org/2800133003/diff/60001/third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp File third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp (right): https://codereview.chromium.org/2800133003/diff/60001/third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp#newcode14 ...
3 years, 5 months ago (2017-07-10 21:26:07 UTC) #32
Daniel Bratell
Realized I had reverted away the BUILD.gn change on my way home yesterday. :-) Restored ...
3 years, 5 months ago (2017-07-11 12:34:18 UTC) #35
alph
Great! Thank you. lgtm https://codereview.chromium.org/2800133003/diff/100001/third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp File third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp (right): https://codereview.chromium.org/2800133003/diff/100001/third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp#newcode17 third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp:17: } // namespace blink Also ...
3 years, 5 months ago (2017-07-11 21:28:18 UTC) #38
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/2800133003/120001
3 years, 5 months ago (2017-07-12 11:55:24 UTC) #41
Daniel Bratell
Thanks, spaced the code like suggested! https://codereview.chromium.org/2800133003/diff/100001/third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp File third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp (right): https://codereview.chromium.org/2800133003/diff/100001/third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp#newcode17 third_party/WebKit/Source/core/inspector/AddStringToDigestor.cpp:17: } // namespace ...
3 years, 5 months ago (2017-07-12 11:56:11 UTC) #42
commit-bot: I haz the power
3 years, 5 months ago (2017-07-12 16:39:43 UTC) #46
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/0ba26ac61aba0f76c0c3d9481262...

Powered by Google App Engine
This is Rietveld 408576698