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

Issue 12223052: Remove unused lock, add debug-only verification of intended usage. (Closed)

Created:
7 years, 10 months ago by Jói
Modified:
7 years, 10 months ago
CC:
chromium-reviews, markusheintz_
Visibility:
Public.

Description

Remove unused lock, add verification of intended usage. There used to be locking in this class, but many small changes had contributed to removing all use of the lock. The lock does not appear to actually be needed, as long as the class continues to be used as it currently is used, with the deferred initialization via RegisterExtensionService always happening before the providers map owned by the object is iterated over. This change removes the |lock_| member and adds debug-only code that verifies that this is how the class continues to be used. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181930

Patch Set 1 #

Patch Set 2 : Proposal #

Patch Set 3 : Remove lock, instead add debug-only verification of intended usage. #

Patch Set 4 : Forgot that DCHECK-enabled != NDEBUG not defined. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -7 lines) Patch
M chrome/browser/content_settings/host_content_settings_map.h View 1 2 2 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.cc View 1 2 3 7 chunks +20 lines, -2 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Jói
7 years, 10 months ago (2013-02-08 13:55:21 UTC) #1
jochen (gone - plz use gerrit)
lgtm
7 years, 10 months ago (2013-02-08 13:57:07 UTC) #2
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/12223052/1
7 years, 10 months ago (2013-02-08 13:57:56 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/12223052/1
7 years, 10 months ago (2013-02-08 15:32:14 UTC) #4
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) interactive_ui_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=97404
7 years, 10 months ago (2013-02-08 16:25:39 UTC) #5
Jói
Hi again Jochen, This wasn't quite as simple as I thought. HostContentSettingsMap has a few ...
7 years, 10 months ago (2013-02-11 17:32:00 UTC) #6
jochen (gone - plz use gerrit)
so reading through the code again, the provider map shouldn't really every change. Even the ...
7 years, 10 months ago (2013-02-11 18:29:49 UTC) #7
Jói
Hi Jochen, I think you're right it's not the cause for the bug. I never ...
7 years, 10 months ago (2013-02-11 19:34:15 UTC) #8
Jói
Hi Jochen, Please take a look at the new approach. I changed the change description ...
7 years, 10 months ago (2013-02-12 12:10:09 UTC) #9
jochen (gone - plz use gerrit)
lgtm!
7 years, 10 months ago (2013-02-12 12:15:18 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/12223052/10002
7 years, 10 months ago (2013-02-12 12:16:42 UTC) #11
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 10 months ago (2013-02-12 12:33:03 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/12223052/1009
7 years, 10 months ago (2013-02-12 13:09:50 UTC) #13
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=98705
7 years, 10 months ago (2013-02-12 14:14:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/joi@chromium.org/12223052/1009
7 years, 10 months ago (2013-02-12 14:20:31 UTC) #15
Jói
7 years, 10 months ago (2013-02-12 14:58:59 UTC) #16
Message was sent while issue was closed.
Committed manually as r181930 as the CQ was having trouble with
consistently-failing interactive_ui_tests on mac_rel.

Powered by Google App Engine
This is Rietveld 408576698