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

Issue 16841020: ResourceRequestAllowedNotifier didn't work as expected (Closed)

Created:
7 years, 6 months ago by Takashi Toyoshima
Modified:
7 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

ResourceRequestAllowedNotifier didn't work as expected Following problems will be fixed by this change. 1) OnResourceRequestsAllowed() was invoked even if network was offline 2) ResourceRequestsAllowed() returned true even though network was offline 3) OnResourceRequestsAllowed() was not invoked even if network went online See also http://crbug.com/249607 for each scenario in details. BUG=249607 TEST=unit_tests --gtest_filter='ResourceRequestAllowedNotifierTest.*' Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=207199

Patch Set 1 : split from 15949022 #

Patch Set 2 : one more fix #

Total comments: 15

Patch Set 3 : review #2 #

Patch Set 4 : (rebase) #

Patch Set 5 : fix resource_request_allowed_notifier_test_util.cc #

Total comments: 4

Patch Set 6 : add ForTesting #

Patch Set 7 : remove redundant call, and fix comments #

Total comments: 2

Patch Set 8 : remove redundant comment #

Patch Set 9 : (rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -21 lines) Patch
M chrome/browser/web_resource/resource_request_allowed_notifier.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/web_resource/resource_request_allowed_notifier.cc View 1 2 3 4 5 3 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -8 lines 0 comments Download
M chrome/browser/web_resource/resource_request_allowed_notifier_unittest.cc View 1 2 6 chunks +47 lines, -11 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Takashi Toyoshima
Hi Alexei, Can you take a look this split CL to fix ResourceRequestAllowedNotifier bugs? I ...
7 years, 6 months ago (2013-06-14 08:27:29 UTC) #1
Alexei Svitkine (slow)
Change looks good, here are some comments. Again, thanks a lot fo noticing the issues ...
7 years, 6 months ago (2013-06-14 16:47:59 UTC) #2
Takashi Toyoshima
Thanks. I fixed my change. https://codereview.chromium.org/16841020/diff/5001/chrome/browser/web_resource/resource_request_allowed_notifier_unittest.cc File chrome/browser/web_resource/resource_request_allowed_notifier_unittest.cc (right): https://codereview.chromium.org/16841020/diff/5001/chrome/browser/web_resource/resource_request_allowed_notifier_unittest.cc#newcode106 chrome/browser/web_resource/resource_request_allowed_notifier_unittest.cc:106: // Simulate a resource ...
7 years, 6 months ago (2013-06-17 07:04:40 UTC) #3
Alexei Svitkine (slow)
lgtm, thanks
7 years, 6 months ago (2013-06-17 13:41:41 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/16841020/10001
7 years, 6 months ago (2013-06-17 14:51:19 UTC) #5
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=139011
7 years, 6 months ago (2013-06-17 15:24:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/16841020/10001
7 years, 6 months ago (2013-06-17 15:26:55 UTC) #7
Alexei Svitkine (slow)
On 2013/06/17 15:26:55, I haz the power (commit-bot) wrote: > CQ is trying da patch. ...
7 years, 6 months ago (2013-06-17 15:31:21 UTC) #8
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=139023
7 years, 6 months ago (2013-06-17 16:05:21 UTC) #9
Takashi Toyoshima
Oh, it seems like that we need to fix TestRequestAllowedNotifier, too. I upload fixed one. ...
7 years, 6 months ago (2013-06-17 17:02:17 UTC) #10
Alexei Svitkine (slow)
https://codereview.chromium.org/16841020/diff/52001/chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc File chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc (right): https://codereview.chromium.org/16841020/diff/52001/chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc#newcode34 chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc:34: SetWaitingForNetworkForTesting(false); So I think ResourceRequestsAllowed() should already be returning ...
7 years, 6 months ago (2013-06-17 17:36:13 UTC) #11
Takashi Toyoshima
https://codereview.chromium.org/16841020/diff/52001/chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc File chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc (right): https://codereview.chromium.org/16841020/diff/52001/chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc#newcode34 chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc:34: SetWaitingForNetworkForTesting(false); OK, I'll add ForTesting method. https://codereview.chromium.org/16841020/diff/52001/chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc#newcode41 chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc:41: // ...
7 years, 6 months ago (2013-06-18 07:21:05 UTC) #12
Alexei Svitkine (slow)
lgtm with a nit https://codereview.chromium.org/16841020/diff/63001/chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc File chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc (right): https://codereview.chromium.org/16841020/diff/63001/chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc#newcode40 chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc:40: // result. Nit: This comment ...
7 years, 6 months ago (2013-06-18 15:35:04 UTC) #13
Takashi Toyoshima
Agreed. Thanks! https://codereview.chromium.org/16841020/diff/63001/chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc File chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc (right): https://codereview.chromium.org/16841020/diff/63001/chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc#newcode40 chrome/browser/web_resource/resource_request_allowed_notifier_test_util.cc:40: // result. On 2013/06/18 15:35:04, Alexei Svitkine ...
7 years, 6 months ago (2013-06-19 04:35:39 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/toyoshim@chromium.org/16841020/75001
7 years, 6 months ago (2013-06-19 04:47:09 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-19 07:16:34 UTC) #16
Message was sent while issue was closed.
Change committed as 207199

Powered by Google App Engine
This is Rietveld 408576698