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

Issue 2781323004: Create a new Data Saver settings page that adds the site breakdown (Closed)

Created:
3 years, 8 months ago by megjablon
Modified:
3 years, 8 months ago
Reviewers:
pasko, Theresa, gone, sclittle
CC:
chromium-reviews, srahim+watch_chromium.org, cbentzel+watch_chromium.org, net-reviews_chromium.org, tbansal+watch-data-reduction-proxy_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Create a new Data Saver settings page that adds the site breakdown The new Data Saver settings page moves the savings percent and stats above the graph, changes formatting, and adds a reset button and site breakdown. The site breakdown displays the top ten sites with the most data usage and their data savings. The compression stats in native are quieried and a list of DataReductionDataUseItem is passed to the view to display. BUG=615560 Review-Url: https://codereview.chromium.org/2781323004 Cr-Commit-Position: refs/heads/master@{#463732} Committed: https://chromium.googlesource.com/chromium/src/+/1956acf3a49b71307e53b33129dad628b64326e8

Patch Set 1 #

Patch Set 2 : one preference to inflate two different layouts #

Total comments: 28

Patch Set 3 : rebase for test fix #

Patch Set 4 : rebase #

Patch Set 5 : twellington comments #

Total comments: 2

Patch Set 6 : rebase and use feature #

Patch Set 7 : twellington comments #

Patch Set 8 : move comparator #

Total comments: 14

Patch Set 9 : sclittle comments #

Total comments: 38

Patch Set 10 : remove file from supressions #

Patch Set 11 : sclittle and dfalcantara comments #

Patch Set 12 : check that the results object is not null #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+701 lines, -168 lines) Patch
M build/android/lint/suppressions.xml View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
A + chrome/android/java/res/layout/data_reduction_old_stats_layout.xml View 1 chunk +1 line, -1 line 0 comments Download
M chrome/android/java/res/layout/data_reduction_stats_layout.xml View 2 chunks +64 lines, -74 lines 0 comments Download
A chrome/android/java/res/layout/data_usage_breakdown.xml View 1 2 3 4 5 6 7 8 9 10 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/android/java/res/layout/data_usage_breakdown_row.xml View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/android/java/res/values-v17/styles.xml View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/net/spdyproxy/DataReductionProxySettings.java View 1 2 3 4 5 6 6 chunks +50 lines, -0 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionDataUseItem.java View 1 2 3 4 5 6 7 1 chunk +73 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionPreferences.java View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +0 lines, -42 lines 0 comments Download
A chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionSiteBreakdownView.java View 1 2 3 4 5 6 7 8 9 10 1 chunk +134 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionStatsPreference.java View 1 2 3 4 5 6 7 8 9 10 5 chunks +92 lines, -40 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +33 lines, -7 lines 0 comments Download
M chrome/android/java_sources.gni View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_feature_list.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +32 lines, -1 line 0 comments Download
M chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +92 lines, -2 lines 0 comments Download

Messages

Total messages: 87 (62 generated)
megjablon
Hi Theresa, I haven't had time to write up a design doc yet because I'm ...
3 years, 8 months ago (2017-03-31 06:55:21 UTC) #8
Theresa
From a high-level, the user of a table layout makes sense to me. The old ...
3 years, 8 months ago (2017-03-31 18:29:07 UTC) #11
megjablon
On 2017/03/31 18:29:07, Theresa wrote: > From a high-level, the user of a table layout ...
3 years, 8 months ago (2017-03-31 18:56:07 UTC) #12
Theresa
On 2017/03/31 18:56:07, megjablon wrote: > On 2017/03/31 18:29:07, Theresa wrote: > > From a ...
3 years, 8 months ago (2017-03-31 18:58:15 UTC) #13
megjablon
Ok this now uses one Preference and should be ready to review!
3 years, 8 months ago (2017-03-31 22:58:17 UTC) #14
Theresa
https://codereview.chromium.org/2781323004/diff/80001/build/android/lint/suppressions.xml File build/android/lint/suppressions.xml (right): https://codereview.chromium.org/2781323004/diff/80001/build/android/lint/suppressions.xml#newcode437 build/android/lint/suppressions.xml:437: <ignore regexp="chrome/android/java/res/layout/data_usage_breakdown.xml"/> Out of curiosity, what's the useless parent? ...
3 years, 8 months ago (2017-04-03 15:05:21 UTC) #23
megjablon
https://codereview.chromium.org/2781323004/diff/80001/build/android/lint/suppressions.xml File build/android/lint/suppressions.xml (right): https://codereview.chromium.org/2781323004/diff/80001/build/android/lint/suppressions.xml#newcode437 build/android/lint/suppressions.xml:437: <ignore regexp="chrome/android/java/res/layout/data_usage_breakdown.xml"/> On 2017/04/03 15:05:20, Theresa wrote: > Out ...
3 years, 8 months ago (2017-04-03 20:33:45 UTC) #28
Theresa
chrome/android/java/src/org/chromium/chrome/browser/preferences/ and chrome/android/java/res lgtm https://codereview.chromium.org/2781323004/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionSiteBreakdownView.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionSiteBreakdownView.java (right): https://codereview.chromium.org/2781323004/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionSiteBreakdownView.java#newcode60 chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionSiteBreakdownView.java:60: mTableLayout.removeViews(1, mTableLayout.getChildCount() - 1); On ...
3 years, 8 months ago (2017-04-03 22:17:31 UTC) #35
megjablon
https://codereview.chromium.org/2781323004/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionSiteBreakdownView.java File chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionSiteBreakdownView.java (right): https://codereview.chromium.org/2781323004/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionSiteBreakdownView.java#newcode60 chrome/android/java/src/org/chromium/chrome/browser/preferences/datareduction/DataReductionSiteBreakdownView.java:60: mTableLayout.removeViews(1, mTableLayout.getChildCount() - 1); On 2017/04/03 22:17:31, Theresa wrote: ...
3 years, 8 months ago (2017-04-04 23:14:06 UTC) #52
megjablon
PTAL, thanks! pasko: suppressions.xml dfalcantara: DataReductionProxySettings.java and android_chrome_strings.grd sclittle: data_reduction_proxy_settings_android.*
3 years, 8 months ago (2017-04-06 22:12:33 UTC) #56
sclittle
https://codereview.chromium.org/2781323004/diff/250001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc (right): https://codereview.chromium.org/2781323004/diff/250001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc#newcode43 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc:43: const int BUCKETS_PER_DAY = nit: Change this to constexpr ...
3 years, 8 months ago (2017-04-06 23:27:43 UTC) #57
megjablon
https://codereview.chromium.org/2781323004/diff/250001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc (right): https://codereview.chromium.org/2781323004/diff/250001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc#newcode43 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc:43: const int BUCKETS_PER_DAY = On 2017/04/06 23:27:43, sclittle wrote: ...
3 years, 8 months ago (2017-04-07 01:20:04 UTC) #60
pasko
https://codereview.chromium.org/2781323004/diff/270001/build/android/lint/suppressions.xml File build/android/lint/suppressions.xml (right): https://codereview.chromium.org/2781323004/diff/270001/build/android/lint/suppressions.xml#newcode436 build/android/lint/suppressions.xml:436: <ignore regexp="chrome/android/java/res/layout/data_reduction_promo_screen.xml"/> note: this file does not exist in ...
3 years, 8 months ago (2017-04-07 11:13:46 UTC) #63
gone
While I review this: are there any screenshots to compare the mocks against?
3 years, 8 months ago (2017-04-07 17:49:32 UTC) #64
megjablon
I can send you screenshots if you'd like, but this isn't to spec yet. I ...
3 years, 8 months ago (2017-04-07 18:00:24 UTC) #65
gone
https://codereview.chromium.org/2781323004/diff/270001/chrome/android/java/res/layout/data_usage_breakdown.xml File chrome/android/java/res/layout/data_usage_breakdown.xml (right): https://codereview.chromium.org/2781323004/diff/270001/chrome/android/java/res/layout/data_usage_breakdown.xml#newcode75 chrome/android/java/res/layout/data_usage_breakdown.xml:75: android:textSize="16sp" The mock says to use 14sp here. Check ...
3 years, 8 months ago (2017-04-07 20:21:59 UTC) #66
sclittle
https://codereview.chromium.org/2781323004/diff/270001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc (right): https://codereview.chromium.org/2781323004/diff/270001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc#newcode9 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc:9: #include <algorithm> nit: remove unnecessary include https://codereview.chromium.org/2781323004/diff/270001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc#newcode11 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc:11: #include ...
3 years, 8 months ago (2017-04-07 20:44:17 UTC) #67
megjablon
https://codereview.chromium.org/2781323004/diff/270001/chrome/android/java/res/layout/data_usage_breakdown.xml File chrome/android/java/res/layout/data_usage_breakdown.xml (right): https://codereview.chromium.org/2781323004/diff/270001/chrome/android/java/res/layout/data_usage_breakdown.xml#newcode75 chrome/android/java/res/layout/data_usage_breakdown.xml:75: android:textSize="16sp" On 2017/04/07 20:21:58, dfalcantara (load balance plz) wrote: ...
3 years, 8 months ago (2017-04-08 01:52:58 UTC) #69
pasko
build/android/lint rubberstamp lgtm based on review by twellington@ https://codereview.chromium.org/2781323004/diff/270001/build/android/lint/suppressions.xml File build/android/lint/suppressions.xml (right): https://codereview.chromium.org/2781323004/diff/270001/build/android/lint/suppressions.xml#newcode437 build/android/lint/suppressions.xml:437: <ignore ...
3 years, 8 months ago (2017-04-10 13:32:03 UTC) #70
gone
lgtm
3 years, 8 months ago (2017-04-10 18:25:08 UTC) #71
sclittle
chrome/browser/net/spdyproxy/* LGTM https://codereview.chromium.org/2781323004/diff/270001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc File chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc (right): https://codereview.chromium.org/2781323004/diff/270001/chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc#newcode253 chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.cc:253: Java_DataReductionProxySettings_createDataUseItemAndAddToList( On 2017/04/08 01:52:57, megjablon wrote: > ...
3 years, 8 months ago (2017-04-11 00:36:20 UTC) #72
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2781323004/350001
3 years, 8 months ago (2017-04-11 02:14:58 UTC) #75
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/187989) ios-device-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 8 months ago (2017-04-11 02:17:37 UTC) #77
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2781323004/370001
3 years, 8 months ago (2017-04-11 19:16:34 UTC) #84
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 19:49:36 UTC) #87
Message was sent while issue was closed.
Committed patchset #13 (id:370001) as
https://chromium.googlesource.com/chromium/src/+/1956acf3a49b71307e53b33129da...

Powered by Google App Engine
This is Rietveld 408576698