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

Issue 512843002: Listen to OnNetworkChanged instead of OnIPAddressChanged (Closed)

Created:
6 years, 3 months ago by Jaekyun Seok (inactive)
Modified:
6 years, 3 months ago
CC:
chromium-reviews, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Listen to OnNetworkChanged instead of OnIPAddressChanged On android platform, it often fails to fetch searchdomaincheck url right after network changes. To fix the failure, this patch modifies GoogleURLTracker to listen to OnNetworkChanged instead of OnIPAddressChanged. BUG=407442 Committed: https://crrev.com/22b47697f6940fd76b8cb5fe5470abdd50c1a8ad Cr-Commit-Position: refs/heads/master@{#293371}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Apply retry on network changes on all platforms #

Patch Set 3 : Listen to OnNetworkChanged instead of OnIPAddressChanged #

Patch Set 4 : Remove retry configuration #

Patch Set 5 : Update tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -34 lines) Patch
M chrome/browser/google/google_url_tracker_unittest.cc View 1 2 3 4 18 chunks +28 lines, -27 lines 0 comments Download
M components/google/core/browser/google_url_tracker.h View 1 2 2 chunks +6 lines, -4 lines 0 comments Download
M components/google/core/browser/google_url_tracker.cc View 1 2 3 3 chunks +7 lines, -3 lines 0 comments Download
M net/base/network_change_notifier.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M net/base/network_change_notifier.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 44 (4 generated)
Jaekyun Seok (inactive)
jaekyun@chromium.org changed reviewers: + blundell@chromium.org, tedchoc@chromium.org
6 years, 3 months ago (2014-08-27 15:52:39 UTC) #1
Jaekyun Seok (inactive)
Please review this patch.
6 years, 3 months ago (2014-08-27 15:52:39 UTC) #2
blundell
blundell@chromium.org changed reviewers: + pkasting@chromium.org
6 years, 3 months ago (2014-08-27 16:57:25 UTC) #3
blundell
blundell -> pkasting PK is better-suited than me for the OWNERS review here.
6 years, 3 months ago (2014-08-27 16:57:25 UTC) #4
Peter Kasting
https://codereview.chromium.org/512843002/diff/1/components/google/core/browser/google_url_tracker.cc File components/google/core/browser/google_url_tracker.cc (right): https://codereview.chromium.org/512843002/diff/1/components/google/core/browser/google_url_tracker.cc#newcode250 components/google/core/browser/google_url_tracker.cc:250: fetcher_->SetAutomaticallyRetryOnNetworkChanges(kMaxRetries); Let me understand this. When the network changes, ...
6 years, 3 months ago (2014-08-27 19:52:46 UTC) #5
Jaekyun Seok (inactive)
https://codereview.chromium.org/512843002/diff/1/components/google/core/browser/google_url_tracker.cc File components/google/core/browser/google_url_tracker.cc (right): https://codereview.chromium.org/512843002/diff/1/components/google/core/browser/google_url_tracker.cc#newcode250 components/google/core/browser/google_url_tracker.cc:250: fetcher_->SetAutomaticallyRetryOnNetworkChanges(kMaxRetries); On 2014/08/27 19:52:46, Peter Kasting wrote: > Let ...
6 years, 3 months ago (2014-08-28 02:00:52 UTC) #6
Peter Kasting
https://codereview.chromium.org/512843002/diff/1/components/google/core/browser/google_url_tracker.cc File components/google/core/browser/google_url_tracker.cc (right): https://codereview.chromium.org/512843002/diff/1/components/google/core/browser/google_url_tracker.cc#newcode250 components/google/core/browser/google_url_tracker.cc:250: fetcher_->SetAutomaticallyRetryOnNetworkChanges(kMaxRetries); On 2014/08/28 02:00:52, Jaekyun Seok wrote: > On ...
6 years, 3 months ago (2014-08-28 03:28:20 UTC) #7
Jaekyun Seok (inactive)
On 2014/08/28 03:28:20, Peter Kasting wrote: > https://codereview.chromium.org/512843002/diff/1/components/google/core/browser/google_url_tracker.cc > File components/google/core/browser/google_url_tracker.cc (right): > > https://codereview.chromium.org/512843002/diff/1/components/google/core/browser/google_url_tracker.cc#newcode250 ...
6 years, 3 months ago (2014-08-28 05:17:26 UTC) #8
Peter Kasting
pkasting@chromium.org changed reviewers: + rsleevi@chromium.org
6 years, 3 months ago (2014-08-28 18:51:19 UTC) #9
Peter Kasting
Ryan, I'm looking for some network stack guidance on the best solution to the problem ...
6 years, 3 months ago (2014-08-28 18:52:11 UTC) #10
Ryan Sleevi
rsleevi@chromium.org changed reviewers: + pauljensen@chromium.org
6 years, 3 months ago (2014-08-29 01:49:50 UTC) #11
Ryan Sleevi
I believe Paul may be better able to answer this. If not he, then mmenke@, ...
6 years, 3 months ago (2014-08-29 01:49:50 UTC) #12
pauljensen
(I just hit some magic key that closed my Chrome window with all my tabs ...
6 years, 3 months ago (2014-08-29 12:05:20 UTC) #13
pauljensen
I should also mention, I'm fine if you want your URLFetcher to retry on ERR_NETWORK_CHANGED ...
6 years, 3 months ago (2014-08-29 12:06:47 UTC) #14
Peter Kasting
Thanks Paul, that sounds like a good plan. Jaekyun, want to implement this?
6 years, 3 months ago (2014-08-29 18:16:17 UTC) #15
Jaekyun Seok (inactive)
On 2014/08/29 18:16:17, Peter Kasting wrote: > Thanks Paul, that sounds like a good plan. ...
6 years, 3 months ago (2014-08-29 21:06:55 UTC) #16
Jaekyun Seok (inactive)
PTAL. I modified this patch to listen to OnNetworkChanged instead of OnIPAddressChanged. I confirmed that ...
6 years, 3 months ago (2014-09-01 01:45:05 UTC) #17
Jaekyun Seok (inactive)
After testing more without configuring max retries for ERR_NETWORK_CHANGED, I confirmed that the original issue ...
6 years, 3 months ago (2014-09-01 05:17:48 UTC) #18
pauljensen
Can you elaborate on the circumstances that cause it to fail and require increasing the ...
6 years, 3 months ago (2014-09-02 11:05:45 UTC) #19
Peter Kasting
I agree. The network change observer stuff looks fine, but continuing to need retries on ...
6 years, 3 months ago (2014-09-02 19:33:16 UTC) #20
Jaekyun Seok (inactive)
You can see the net-internals log between network change and failure of fetching in https://drive.google.com/a/google.com/file/d/0B0rlutRlVuQKT2lwU2ZybVJnclk/view?usp=sharing ...
6 years, 3 months ago (2014-09-02 23:23:06 UTC) #21
Peter Kasting
On 2014/09/02 23:23:06, Jaekyun Seok wrote: > You can see the net-internals log between network ...
6 years, 3 months ago (2014-09-02 23:36:33 UTC) #22
pauljensen
I filed http://crbug.com/410304 to make the network change events.
6 years, 3 months ago (2014-09-03 14:53:56 UTC) #24
blundell
On 2014/09/03 14:53:56, pauljensen wrote: > I filed http://crbug.com/410304 to make the network change events. ...
6 years, 3 months ago (2014-09-03 14:55:00 UTC) #25
pauljensen
I filed http://crbug.com/410304 to make the network change events come after the DNS changed events. ...
6 years, 3 months ago (2014-09-03 14:56:30 UTC) #26
Jaekyun Seok (inactive)
Then, will this patch keep going separately, or do you want me to abandon it?
6 years, 3 months ago (2014-09-03 21:27:21 UTC) #27
Peter Kasting
On 2014/09/03 21:27:21, Jaekyun Seok wrote: > Then, will this patch keep going separately, or ...
6 years, 3 months ago (2014-09-03 21:40:12 UTC) #28
Jaekyun Seok (inactive)
Without the network changed retry bit this change isn't related to the original bug at ...
6 years, 3 months ago (2014-09-03 21:56:38 UTC) #29
Peter Kasting
I would really rather not add that line, even if it works around this bug ...
6 years, 3 months ago (2014-09-03 22:07:44 UTC) #30
Jaekyun Seok (inactive)
OK. I will remove the line for the network changed retry bit in this change. ...
6 years, 3 months ago (2014-09-03 22:27:24 UTC) #31
Jaekyun Seok (inactive)
PTAL. I removed the network changed retry.
6 years, 3 months ago (2014-09-03 22:31:42 UTC) #32
Peter Kasting
LGTM
6 years, 3 months ago (2014-09-03 22:34:32 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jaekyun@chromium.org/512843002/60001
6 years, 3 months ago (2014-09-03 23:24:03 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/1903) android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/5003) win_chromium_x64_rel_swarming ...
6 years, 3 months ago (2014-09-04 02:22:04 UTC) #37
Jaekyun Seok (inactive)
PTAL. I updated tests to fix failures on unittests.
6 years, 3 months ago (2014-09-04 04:18:46 UTC) #38
Jaekyun Seok (inactive)
Paul, please take a look at changes on network_change_notifier.h/cc.
6 years, 3 months ago (2014-09-04 04:22:59 UTC) #39
pauljensen
net/ LGTM
6 years, 3 months ago (2014-09-04 11:38:01 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jaekyun@chromium.org/512843002/80001
6 years, 3 months ago (2014-09-04 21:19:42 UTC) #42
commit-bot: I haz the power
Committed patchset #5 (id:80001) as f5cff07e7f19d02993e06062d14282978beed20b
6 years, 3 months ago (2014-09-04 23:23:41 UTC) #43
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:33:52 UTC) #44
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/22b47697f6940fd76b8cb5fe5470abdd50c1a8ad
Cr-Commit-Position: refs/heads/master@{#293371}

Powered by Google App Engine
This is Rietveld 408576698