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

Issue 211423008: [refactor] Remove the AlgorithmRegistry singleton. (Closed)

Created:
6 years, 9 months ago by eroman
Modified:
6 years, 8 months ago
CC:
blink-reviews
Visibility:
Public.

Description

[refactor] Remove the AlgorithmRegistry singleton. The problem with AlgorithmRegistry is that it is not threadsafe. BUG=357673, 245025 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170672

Patch Set 1 #

Patch Set 2 : Get rid of function pointers #

Patch Set 3 : Use std::lower_bound() instead of switch statements #

Total comments: 2

Patch Set 4 : Remove use of std::is_sorted() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -95 lines) Patch
M Source/modules/crypto/NormalizeAlgorithm.cpp View 1 2 3 4 chunks +191 lines, -95 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
eroman
esprehn: You helped me out on IRC; what do you think of this approach?
6 years, 9 months ago (2014-03-26 03:55:59 UTC) #1
eroman
changing reviewer to abarth...
6 years, 8 months ago (2014-04-01 02:42:31 UTC) #2
esprehn
I think you want a static array of the names and the params and you ...
6 years, 8 months ago (2014-04-01 04:31:08 UTC) #3
abarth-chromium
On 2014/04/01 04:31:08, esprehn wrote: > I think you want a static array of the ...
6 years, 8 months ago (2014-04-01 04:58:24 UTC) #4
eroman
Done --> switched to std::lower_bound(). PTAL
6 years, 8 months ago (2014-04-01 21:08:51 UTC) #5
abarth-chromium
lgtm https://codereview.chromium.org/211423008/diff/60001/Source/modules/crypto/NormalizeAlgorithm.cpp File Source/modules/crypto/NormalizeAlgorithm.cpp (right): https://codereview.chromium.org/211423008/diff/60001/Source/modules/crypto/NormalizeAlgorithm.cpp#newcode194 Source/modules/crypto/NormalizeAlgorithm.cpp:194: template <typename Char> We usually use CharType for ...
6 years, 8 months ago (2014-04-01 21:46:13 UTC) #6
esprehn
lgtm
6 years, 8 months ago (2014-04-01 22:04:08 UTC) #7
eroman
I replaced the usage of std::is_sorted() with a helper function, since that is new to ...
6 years, 8 months ago (2014-04-01 22:28:31 UTC) #8
eroman
The CQ bit was checked by eroman@chromium.org
6 years, 8 months ago (2014-04-02 16:49:30 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/eroman@chromium.org/211423008/70001
6 years, 8 months ago (2014-04-02 16:49:39 UTC) #10
commit-bot: I haz the power
6 years, 8 months ago (2014-04-02 17:14:20 UTC) #11
Message was sent while issue was closed.
Change committed as 170672

Powered by Google App Engine
This is Rietveld 408576698