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

Issue 1255263002: Remove a race around NetworkChangeNotifier::test_notifications_only_ (Closed)

Created:
5 years, 4 months ago by jkarlin
Modified:
5 years, 4 months ago
CC:
cbentzel+watch_chromium.org, chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove a race around NetworkChangeNotifier::test_notifications_only_ There is a possible race in which NetworkChangeNotifier::test_notifications_only_ might be read on one thread while being written on another. This CL fixes that by making the variable static and only allowing writes to it before the NetworkChangeNotifier is created (before other things might try to read it). BUG=454652 Committed: https://crrev.com/e160f6be485deabcb4725d7e3623ae18ef5aee48 Cr-Commit-Position: refs/heads/master@{#341354}

Patch Set 1 #

Patch Set 2 : comments #

Patch Set 3 : Remove TSAN suppression #

Patch Set 4 : Fix other uses of SetTestNotificationsOnly #

Patch Set 5 : Fix unit test #

Patch Set 6 : Possible iOS fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -24 lines) Patch
M build/sanitizers/tsan_suppressions.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_manager_browsertest_base.h View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_manager_browsertest_base.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download
M components/data_reduction_proxy/core/browser/data_reduction_proxy_bypass_protocol_unittest.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/web_resource/resource_request_allowed_notifier_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/net_info_browsertest.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M net/base/network_change_notifier.h View 1 2 chunks +3 lines, -2 lines 0 comments Download
M net/base/network_change_notifier.cc View 9 chunks +14 lines, -12 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
jkarlin
paul: PTAL at net/, thanks!
5 years, 4 months ago (2015-07-27 17:55:25 UTC) #2
pauljensen
data_reduction_proxy_bypass_protocol_unittest.cc and maybe another spot look like they initialize an NCN before calling SetTestOnly...(). Golly ...
5 years, 4 months ago (2015-07-27 18:20:23 UTC) #3
jkarlin
On 2015/07/27 18:20:23, pauljensen wrote: > data_reduction_proxy_bypass_protocol_unittest.cc and maybe another spot look > like they ...
5 years, 4 months ago (2015-07-27 18:38:53 UTC) #4
pauljensen
Doesn't build on ChromeOS.
5 years, 4 months ago (2015-07-28 11:40:35 UTC) #5
jkarlin
On 2015/07/28 11:40:35, pauljensen wrote: > Doesn't build on ChromeOS. Thanks for looking. Fixed.
5 years, 4 months ago (2015-07-28 13:00:54 UTC) #6
jkarlin
On 2015/07/28 13:00:54, jkarlin wrote: > On 2015/07/28 11:40:35, pauljensen wrote: > > Doesn't build ...
5 years, 4 months ago (2015-07-28 13:02:15 UTC) #7
jkarlin
Should be good for review again.
5 years, 4 months ago (2015-07-28 16:56:05 UTC) #9
pauljensen
lgtm
5 years, 4 months ago (2015-07-28 18:45:11 UTC) #10
jkarlin
Thanks Paul! asvitkine@chromium.org: Please review changes in components/web_resource/ bengr@chromium.org: Please review changes in data_reduction_proxy/ yoshiki@chromium.org: ...
5 years, 4 months ago (2015-07-28 18:52:16 UTC) #12
Alexei Svitkine (slow)
lgtm
5 years, 4 months ago (2015-07-28 19:54:54 UTC) #13
jochen (gone - plz use gerrit)
lgtm
5 years, 4 months ago (2015-07-29 11:41:40 UTC) #14
yoshiki
file_manager lgtm
5 years, 4 months ago (2015-07-30 01:47:28 UTC) #15
jkarlin
bengr: PTAL, thanks!
5 years, 4 months ago (2015-07-30 12:54:55 UTC) #16
bengr
data_reduction_proxy lgtm
5 years, 4 months ago (2015-07-31 15:37:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1255263002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1255263002/120001
5 years, 4 months ago (2015-07-31 15:39:27 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 4 months ago (2015-07-31 17:04:16 UTC) #20
commit-bot: I haz the power
5 years, 4 months ago (2015-07-31 17:04:54 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e160f6be485deabcb4725d7e3623ae18ef5aee48
Cr-Commit-Position: refs/heads/master@{#341354}

Powered by Google App Engine
This is Rietveld 408576698