New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 697539 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Ensure Wi-Fi gated network traffic respects

Project Member Reported by mdw@chromium.org, Mar 1 2017

Issue description

There are likely a number of places in Chrome where we avoid downloading (or uploading) data over cellular due to concerns about data costs, but allow such traffic over WiFi. We should audit such cases and ensure that they are also respecting the Android ConnectivityManager.isActiveNetworkMetered() API, which means that if a user does flag a given WiFi network as metered, that we are careful not to waste data on that network.

https://developer.android.com/reference/android/net/ConnectivityManager.html#isActiveNetworkMetered()

 
Cc: pauljensen@chromium.org
If possible I'd like to have an abstract function, potentially in NCN or somewhere else for this. Other platforms also have support of marking metered connections although Android is the most important one.

Comment 2 by bengr@chromium.org, Mar 14 2017

Owner: rajendrant@chromium.org
An audit will be tough. Raj, can you take a look? We should include code doesn't use net/ to use the network.

It would be awesome, but probably totally impractical to have the network stack enforce the policy. 

An abstract IsActiveNetworkMetered() makes sense, but will get confusing when Chrome supports multi-networking.
IIRC, majority of calls to NCN::IsConnectionCellular() in Chromium can be replaced by NCN::IsActiveNetworkMetered(). That might be a good place to start for auditing.

Comment 4 by bengr@chromium.org, Nov 8 2017

Refreshed during triage.

Comment 5 by bengr@chromium.org, Jan 3 2018

Let's wait until we have an audit from rajendrant@ to decide how to move forward.
Refreshed during triage.
Any updates here? Can this be closed?
Labels: -Pri-3 M-72 Pri-2
Refreshed during triage. What's the status here?
Labels: Hotlist-GoodFirstBug
Labels: -Pri-2 -M-72 Pri-3

Comment 12 by rajendrant@chromium.org, Jan 17 (6 days ago)

Cc: twelling...@chromium.org
Labels: Restrict-View-Google
twellington@

Do you know of any stats on the usage of metered networks. How freuqently an WiFi network is marked as metered.

Comment 13 by twelling...@chromium.org, Jan 17 (6 days ago)

I have no idea, sorry. Definitely out of my domain area.

Comment 14 by tbansal@chromium.org, Jan 17 (6 days ago)

Cc: rajendrant@chromium.org
Owner: ----
Status: Available (was: Assigned)

Comment 15 by tbansal@chromium.org, Jan 17 (6 days ago)

Labels: -Restrict-View-Google

Sign in to add a comment