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

Issue 11360108: Start calculating new combined NetworkChangeNotifier signal (Closed)

Created:
8 years, 1 month ago by pauljensen
Modified:
8 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Start calculating new combined NetworkChangeNotifier signal from previous OnIPAddressChanged and OnConnectionTypeChanged signals. For now it uses delay constants chosen by experimentation but this commit includes histograms to tune the constants. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171920

Patch Set 1 : #

Total comments: 10

Patch Set 2 : Address szym's first round of comments #

Total comments: 8

Patch Set 3 : sync #

Patch Set 4 : Fix sync and adjust Android for crrev.com/11411287 #

Patch Set 5 : Address szym's second round of comments #

Patch Set 6 : adjust for crrev.com/11359141 #

Total comments: 4

Patch Set 7 : Tiny fix: adjust types to match initialization #

Patch Set 8 : sync #

Patch Set 9 : Use a default constructor #

Total comments: 1

Patch Set 10 : Switch to default argument constructor #

Unified diffs Side-by-side diffs Delta from patch set Stats (+327 lines, -10 lines) Patch
M chrome/browser/chromeos/net/network_change_notifier_chromeos.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/net/network_change_notifier_chromeos.cc View 1 2 2 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/io_thread.cc View 1 2 3 4 5 6 7 2 chunks +19 lines, -1 line 0 comments Download
M net/android/network_change_notifier_android.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M net/android/network_change_notifier_android.cc View 1 2 3 4 5 6 7 1 chunk +16 lines, -1 line 0 comments Download
M net/base/net_log_event_type_list.h View 1 1 chunk +7 lines, -0 lines 0 comments Download
M net/base/network_change_notifier.h View 1 2 3 4 5 6 7 8 9 9 chunks +72 lines, -1 line 0 comments Download
M net/base/network_change_notifier.cc View 1 2 3 4 5 6 7 8 9 11 chunks +130 lines, -3 lines 0 comments Download
M net/base/network_change_notifier_linux.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/base/network_change_notifier_linux.cc View 1 2 3 4 5 2 chunks +16 lines, -1 line 0 comments Download
M net/base/network_change_notifier_mac.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/network_change_notifier_mac.cc View 1 2 chunks +16 lines, -1 line 0 comments Download
M net/base/network_change_notifier_win.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M net/base/network_change_notifier_win.cc View 1 2 chunks +16 lines, -1 line 0 comments Download
M net/tools/net_watcher/net_watcher.cc View 1 4 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
pauljensen
Szymon, PTAL.
8 years, 1 month ago (2012-11-21 22:17:14 UTC) #1
szym
https://codereview.chromium.org/11360108/diff/16001/net/base/network_change_notifier.cc File net/base/network_change_notifier.cc (right): https://codereview.chromium.org/11360108/diff/16001/net/base/network_change_notifier.cc#newcode231 net/base/network_change_notifier.cc:231: // OnConnectionTypeChanged when transitioning from an online state. This ...
8 years ago (2012-11-25 07:37:37 UTC) #2
szym
https://codereview.chromium.org/11360108/diff/16001/net/base/network_change_notifier_linux.cc File net/base/network_change_notifier_linux.cc (right): https://codereview.chromium.org/11360108/diff/16001/net/base/network_change_notifier_linux.cc#newcode309 net/base/network_change_notifier_linux.cc:309: : NetworkChangeNotifier(1500, 500, 1500, 500), Just to be clear. ...
8 years ago (2012-11-26 22:17:03 UTC) #3
pauljensen
I addressed all your comments with changes or replying comments. I moved the calculator parameters ...
8 years ago (2012-11-27 21:47:42 UTC) #4
szym
LGTM https://codereview.chromium.org/11360108/diff/12003/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc File chrome/browser/chromeos/drive/drive_scheduler_unittest.cc (right): https://codereview.chromium.org/11360108/diff/12003/chrome/browser/chromeos/drive/drive_scheduler_unittest.cc#newcode31 chrome/browser/chromeos/drive/drive_scheduler_unittest.cc:31: class MockNetworkChangeNotifier : public net::NetworkChangeNotifier { If you ...
8 years ago (2012-11-27 22:22:05 UTC) #5
pauljensen
Zelidrag, could you review the chrome/browser/chromeos changes? Raman, could you review the chrome/browser/metrics/variations/ change? John, ...
8 years ago (2012-12-03 21:07:18 UTC) #6
jam
On 2012/12/03 21:07:18, pauljensen wrote: > Zelidrag, could you review the chrome/browser/chromeos changes? > Raman, ...
8 years ago (2012-12-03 21:09:32 UTC) #7
ramant (doing other things)
lgtm
8 years ago (2012-12-03 22:16:19 UTC) #8
zel
https://codereview.chromium.org/11360108/diff/21008/chrome/browser/chromeos/net/network_change_notifier_chromeos.cc File chrome/browser/chromeos/net/network_change_notifier_chromeos.cc (right): https://codereview.chromium.org/11360108/diff/21008/chrome/browser/chromeos/net/network_change_notifier_chromeos.cc#newcode262 chrome/browser/chromeos/net/network_change_notifier_chromeos.cc:262: if (weak_factory_.HasWeakPtrs()) { there is no reason to do ...
8 years ago (2012-12-03 23:30:34 UTC) #9
pauljensen
https://codereview.chromium.org/11360108/diff/21008/chrome/browser/chromeos/net/network_change_notifier_chromeos.cc File chrome/browser/chromeos/net/network_change_notifier_chromeos.cc (right): https://codereview.chromium.org/11360108/diff/21008/chrome/browser/chromeos/net/network_change_notifier_chromeos.cc#newcode343 chrome/browser/chromeos/net/network_change_notifier_chromeos.cc:343: params.ip_address_offline_delay_ = base::TimeDelta::FromMilliseconds(4000); On 2012/12/03 23:30:34, zel wrote: > ...
8 years ago (2012-12-04 13:55:51 UTC) #10
pauljensen
Zelidrag, ping.
8 years ago (2012-12-06 13:45:07 UTC) #11
zel
lgtm https://codereview.chromium.org/11360108/diff/21008/chrome/browser/chromeos/net/network_change_notifier_chromeos.cc File chrome/browser/chromeos/net/network_change_notifier_chromeos.cc (right): https://codereview.chromium.org/11360108/diff/21008/chrome/browser/chromeos/net/network_change_notifier_chromeos.cc#newcode343 chrome/browser/chromeos/net/network_change_notifier_chromeos.cc:343: params.ip_address_offline_delay_ = base::TimeDelta::FromMilliseconds(4000); On 2012/12/04 13:55:51, pauljensen wrote: ...
8 years ago (2012-12-06 17:45:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pauljensen@chromium.org/11360108/21008
8 years ago (2012-12-06 20:16:34 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-06 20:57:10 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pauljensen@chromium.org/11360108/38001
8 years ago (2012-12-06 21:17:51 UTC) #15
commit-bot: I haz the power
Failed to apply patch for chrome/browser/chromeos/drive/drive_scheduler_unittest.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years ago (2012-12-06 21:17:59 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pauljensen@chromium.org/11360108/33002
8 years ago (2012-12-06 21:31:19 UTC) #17
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years ago (2012-12-06 22:10:22 UTC) #18
pauljensen
Szymon, I decided to add a default constructor so as to not have to modify ...
8 years ago (2012-12-07 17:04:07 UTC) #19
szym
https://codereview.chromium.org/11360108/diff/34004/net/base/network_change_notifier.cc File net/base/network_change_notifier.cc (right): https://codereview.chromium.org/11360108/diff/34004/net/base/network_change_notifier.cc#newcode495 net/base/network_change_notifier.cc:495: ObserverListBase<IPAddressObserver>::NOTIFY_EXISTING_ONLY); I wish there was a better way. Where's ...
8 years ago (2012-12-07 17:56:24 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pauljensen@chromium.org/11360108/30006
8 years ago (2012-12-07 23:04:14 UTC) #21
commit-bot: I haz the power
8 years ago (2012-12-08 02:46:43 UTC) #22
Message was sent while issue was closed.
Change committed as 171920

Powered by Google App Engine
This is Rietveld 408576698