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

Issue 11115009: Helper functions in NetworkChangeNotifier related to WWAN use (Closed)

Created:
8 years, 2 months ago by droger
Modified:
8 years, 1 month ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, darin-cc_chromium.org, stuartmorgan
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Helper functions in NetworkChangeNotifier related to WWAN use On iOS, this is used to disable certain features when WWAN is active in order to save network traffic and/or battery. BUG=145954 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=165929

Patch Set 1 #

Total comments: 3

Patch Set 2 : Review comments #

Patch Set 3 : Fix comments #

Patch Set 4 : Update existing code #

Total comments: 2

Patch Set 5 : Review comments #

Patch Set 6 : Remove unnecessary diff #

Patch Set 7 : Fix compilation #

Total comments: 2

Patch Set 8 : Fix chromeos compilation #

Patch Set 9 : Fix merge issue #

Patch Set 10 : Remove whitespace #

Total comments: 1

Patch Set 11 : Fix typo #

Total comments: 2

Patch Set 12 : Improved comment #

Patch Set 13 : Typo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+40 lines, -30 lines) Patch
M chrome/browser/chromeos/drive/drive_file_system_util.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_file_system_util.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -20 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_scheduler.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_sync_client.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/network_change_notifier.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -3 lines 0 comments Download
M net/base/network_change_notifier.cc View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
droger
8 years, 2 months ago (2012-10-12 12:57:05 UTC) #1
cbentzel
+pauljensen, who is working on the NCN.
8 years, 2 months ago (2012-10-12 13:18:01 UTC) #2
cbentzel
We may also want to look at making this common with some of how ChromeOS ...
8 years, 2 months ago (2012-10-12 13:20:26 UTC) #3
droger
On 2012/10/12 13:20:26, cbentzel wrote: > We may also want to look at making this ...
8 years, 2 months ago (2012-10-12 13:23:54 UTC) #4
pauljensen
I agree centralizing this in the network stack is a good idea, especially when the ...
8 years, 2 months ago (2012-10-12 14:01:15 UTC) #5
droger
Thanks, I applied your comments. I noticed a similar function in chromeos here: http://code.google.com/searchframe#OAMlx_jo-ck/src/chrome/browser/chromeos/gdata/drive_sync_client.cc&exact_package=chromium&q=CONNECTION_2G&type=cs&l=60 however ...
8 years, 2 months ago (2012-10-12 14:28:46 UTC) #6
droger
Nevermind, I found it, the code was moved. I'll make that code use the new ...
8 years, 2 months ago (2012-10-12 14:36:57 UTC) #7
Ryan Sleevi
http://codereview.chromium.org/11115009/diff/6003/net/base/network_change_notifier.cc File net/base/network_change_notifier.cc (right): http://codereview.chromium.org/11115009/diff/6003/net/base/network_change_notifier.cc#newcode299 net/base/network_change_notifier.cc:299: default: If you remove this "default", you should get ...
8 years, 2 months ago (2012-10-12 17:49:56 UTC) #8
pauljensen
Would be great if we could replace CrOS's PrerenderConditionNetwork::CanPrerender() with a call to IsConnectionCellular. Maybe ...
8 years, 2 months ago (2012-10-12 20:35:42 UTC) #9
droger
I applied the comments. On 2012/10/12 20:35:42, pauljensen wrote: > Would be great if we ...
8 years, 2 months ago (2012-10-15 10:09:56 UTC) #10
droger
ping
8 years, 2 months ago (2012-10-22 14:00:41 UTC) #11
pauljensen
https://codereview.chromium.org/11115009/diff/23001/chrome/browser/chromeos/drive/drive_sync_client.cc File chrome/browser/chromeos/drive/drive_sync_client.cc (right): https://codereview.chromium.org/11115009/diff/23001/chrome/browser/chromeos/drive/drive_sync_client.cc#newcode197 chrome/browser/chromeos/drive/drive_sync_client.cc:197: net::NetworkChangeNotifier::IsConnectionCellular()) How does this build? I thought you got ...
8 years, 2 months ago (2012-10-22 14:05:07 UTC) #12
droger
https://codereview.chromium.org/11115009/diff/23001/chrome/browser/chromeos/drive/drive_sync_client.cc File chrome/browser/chromeos/drive/drive_sync_client.cc (right): https://codereview.chromium.org/11115009/diff/23001/chrome/browser/chromeos/drive/drive_sync_client.cc#newcode197 chrome/browser/chromeos/drive/drive_sync_client.cc:197: net::NetworkChangeNotifier::IsConnectionCellular()) On 2012/10/22 14:05:07, pauljensen wrote: > How does ...
8 years, 2 months ago (2012-10-22 15:11:32 UTC) #13
pauljensen
Seems fine to me other than the little typo. I'm not a committer yet so ...
8 years, 2 months ago (2012-10-22 15:33:36 UTC) #14
Ryan Sleevi
Still a nit on the comment, but the implementation looks good. https://codereview.chromium.org/11115009/diff/27003/net/base/network_change_notifier.h File net/base/network_change_notifier.h (right): ...
8 years, 2 months ago (2012-10-22 17:34:00 UTC) #15
droger
https://codereview.chromium.org/11115009/diff/27003/net/base/network_change_notifier.h File net/base/network_change_notifier.h (right): https://codereview.chromium.org/11115009/diff/27003/net/base/network_change_notifier.h#newcode139 net/base/network_change_notifier.h:139: // current connection is cellular. On 2012/10/22 17:34:00, Ryan ...
8 years, 2 months ago (2012-10-22 17:41:06 UTC) #16
droger
I tried to improve the comment.
8 years, 2 months ago (2012-10-24 09:07:46 UTC) #17
Ryan Sleevi
lgtm
8 years, 1 month ago (2012-10-24 23:39:12 UTC) #18
droger
+Zachary for drive changes
8 years, 1 month ago (2012-10-25 09:20:08 UTC) #19
droger
@zork: ping
8 years, 1 month ago (2012-10-29 17:35:05 UTC) #20
droger
Trying with kochi as drive OWNER reviewer (zork seems unresponsive).
8 years, 1 month ago (2012-10-31 08:53:28 UTC) #21
kochi
On 2012/10/31 08:53:28, droger wrote: > Trying with kochi as drive OWNER reviewer (zork seems ...
8 years, 1 month ago (2012-11-01 02:32:14 UTC) #22
kochi
LGTM
8 years, 1 month ago (2012-11-01 02:36:39 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/11115009/44001
8 years, 1 month ago (2012-11-05 09:53:22 UTC) #24
commit-bot: I haz the power
Retried try job too often for step(s) content_browsertests
8 years, 1 month ago (2012-11-05 13:08:19 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/droger@chromium.org/11115009/44001
8 years, 1 month ago (2012-11-05 13:10:21 UTC) #26
commit-bot: I haz the power
8 years, 1 month ago (2012-11-05 14:05:57 UTC) #27
Change committed as 165929

Powered by Google App Engine
This is Rietveld 408576698