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

Issue 2545443002: Cleanup multiple URLSchemesSet static variables (Closed)

Created:
4 years ago by kinuko
Modified:
4 years ago
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup multiple URLSchemesSet static variables SchemeRegistry.cpp has bunch of distinct static URLSchemesSet's and they are getting a bit out of control. This patch: * Introduces URLSchemesRegisry that bundles all the URLSchemesSet's so that they can be initialized at once * Provides mutable and non-mutable version of getters for the URLSchemesRegistry instance so that one can safely call non-mutable getters without worrying about thread-safety, while we have the thread assertion in the mutable version of getter. BUG=n/a Committed: https://crrev.com/3045382d44f9976637a6922885d27267623d3f06 Cr-Commit-Position: refs/heads/master@{#435618}

Patch Set 1 #

Total comments: 8

Patch Set 2 : addressed comments #

Patch Set 3 : re-add fetchAPISchemes initialization #

Patch Set 4 : remove a test that expects lower() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -189 lines) Patch
M third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp View 1 2 12 chunks +97 lines, -186 lines 0 comments Download
M third_party/WebKit/Source/platform/weborigin/SchemeRegistryTest.cpp View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 27 (19 generated)
kinuko
Can you take a look? Now that the removal of mutex lock is (seemingly) working ...
4 years ago (2016-11-30 10:20:18 UTC) #5
Mike West
This is a lot cleaner, thank you. LGTM % nit. https://codereview.chromium.org/2545443002/diff/1/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp File third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp (right): https://codereview.chromium.org/2545443002/diff/1/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp#newcode70 ...
4 years ago (2016-11-30 10:27:33 UTC) #6
Charlie Harrison
Looks great, thank you! Just a a suggestion and some lower() cleanups I must have ...
4 years ago (2016-11-30 13:24:27 UTC) #9
kinuko
Thanks! https://codereview.chromium.org/2545443002/diff/1/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp File third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp (right): https://codereview.chromium.org/2545443002/diff/1/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp#newcode70 third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp:70: friend URLSchemesRegistry& getMutableURLSchemesRegistry(); On 2016/11/30 10:27:33, Mike West ...
4 years ago (2016-12-01 05:53:23 UTC) #16
Charlie Harrison
On 2016/12/01 05:53:23, kinuko wrote: > Thanks! > > https://codereview.chromium.org/2545443002/diff/1/third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp > File third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp (right): > ...
4 years ago (2016-12-01 12:56:25 UTC) #19
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/2545443002/60001
4 years ago (2016-12-01 14:25:17 UTC) #22
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-01 15:47:12 UTC) #25
commit-bot: I haz the power
4 years ago (2016-12-01 15:49:10 UTC) #27
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/3045382d44f9976637a6922885d27267623d3f06
Cr-Commit-Position: refs/heads/master@{#435618}

Powered by Google App Engine
This is Rietveld 408576698