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

Issue 2166363003: Offline pages using NQE 2G Slow (Closed)

Created:
4 years, 5 months ago by RyanSturm
Modified:
4 years, 4 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Offline pages using NQE 2G Slow This allows use of the offline pages feature when on a prohibitively slow network. This feature is behind a FieldTrial. BUG=615563 Committed: https://crrev.com/9d5928c1f4cdfc2ce617c8c4c0c925951a5eb861 Cr-Commit-Position: refs/heads/master@{#408511}

Patch Set 1 #

Patch Set 2 : nits #

Patch Set 3 : Added tests and field trial #

Patch Set 4 : changes in switch statement #

Patch Set 5 : changed the field trial name and logic #

Patch Set 6 : clarifying comment #

Total comments: 18

Patch Set 7 : tbansal nits (switching to consuming previews component) #

Total comments: 21

Patch Set 8 : Addressing tbansal's comments (and moving clock to delegate) #

Patch Set 9 : removing unneeded comment #

Patch Set 10 : rebasing, renaming method to match rebase #

Total comments: 8

Patch Set 11 : thestig comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+165 lines, -20 lines) Patch
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +61 lines, -5 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +63 lines, -4 lines 0 comments Download
M chrome/browser/net/nqe/ui_network_quality_estimator_service.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/net/nqe/ui_network_quality_estimator_service.cc View 1 2 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M components/previews/previews_experiments.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M components/previews/previews_experiments.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -1 line 0 comments Download
M components/previews/previews_experiments_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -10 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 72 (52 generated)
RyanSturm
tbansal: PTAL at *, thanks
4 years, 5 months ago (2016-07-25 21:11:45 UTC) #20
tbansal1
https://codereview.chromium.org/2166363003/diff/100001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2166363003/diff/100001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode280 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:280: RedirectResult::PAGE_NOT_FRESH_ON_PROHIBITVELY_SLOW_NETWORK); Why is this needed? https://codereview.chromium.org/2166363003/diff/100001/chrome/browser/net/nqe/ui_network_quality_estimator_service.h File chrome/browser/net/nqe/ui_network_quality_estimator_service.h (right): ...
4 years, 5 months ago (2016-07-25 21:35:26 UTC) #21
tbansal1
More comments. https://codereview.chromium.org/2166363003/diff/100001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2166363003/diff/100001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode118 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:118: if (data_reduction_proxy::params:: Might be cleaner to move ...
4 years, 5 months ago (2016-07-25 21:43:22 UTC) #22
RyanSturm
tbansal: PTAL https://codereview.chromium.org/2166363003/diff/100001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2166363003/diff/100001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode118 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:118: if (data_reduction_proxy::params:: On 2016/07/25 21:43:22, tbansal1 wrote: ...
4 years, 4 months ago (2016-07-26 19:48:12 UTC) #27
tbansal1
https://codereview.chromium.org/2166363003/diff/120001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2166363003/diff/120001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode52 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:52: if (!previews::IsIncludedInOfflinePagesSlowConnectionFieldTrial()) { braces not needed :) https://codereview.chromium.org/2166363003/diff/120001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode62 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:62: ...
4 years, 4 months ago (2016-07-26 20:12:48 UTC) #30
Dmitry Titov
https://codereview.chromium.org/2166363003/diff/120001/chrome/browser/android/offline_pages/offline_page_tab_helper.h File chrome/browser/android/offline_pages/offline_page_tab_helper.h (right): https://codereview.chromium.org/2166363003/diff/120001/chrome/browser/android/offline_pages/offline_page_tab_helper.h#newcode77 chrome/browser/android/offline_pages/offline_page_tab_helper.h:77: void SetClockForTesting(std::unique_ptr<base::Clock> clock); Drive-by: Note how we use DefaultDelegate ...
4 years, 4 months ago (2016-07-26 21:10:36 UTC) #32
RyanSturm
tbansal: PTAL, thanks https://codereview.chromium.org/2166363003/diff/120001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2166363003/diff/120001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode52 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:52: if (!previews::IsIncludedInOfflinePagesSlowConnectionFieldTrial()) { On 2016/07/26 20:12:48, ...
4 years, 4 months ago (2016-07-26 21:48:13 UTC) #33
tbansal1
lgtm https://codereview.chromium.org/2166363003/diff/120001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2166363003/diff/120001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode287 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:287: base::TimeDelta::FromDays(1)) { On 2016/07/26 21:48:12, RyanSturm wrote: > ...
4 years, 4 months ago (2016-07-26 21:52:43 UTC) #38
RyanSturm
dimich: PTAL, thanks
4 years, 4 months ago (2016-07-26 21:56:14 UTC) #39
Dmitry Titov
lgtm, thanks for updating!
4 years, 4 months ago (2016-07-26 22:01:30 UTC) #40
RyanSturm
Thanks for the review, I'll have to wait to land the previews CL before landing ...
4 years, 4 months ago (2016-07-26 22:02:21 UTC) #41
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/2166363003/170001
4 years, 4 months ago (2016-07-28 19:47:43 UTC) #54
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/227238)
4 years, 4 months ago (2016-07-28 19:54:43 UTC) #56
RyanSturm
thestig: PTAL @ chrome/browser/BUILD.gn and chrome/chrome_browser.gypi (adding dependency for new component, previews).
4 years, 4 months ago (2016-07-28 20:09:18 UTC) #57
RyanSturm
thestig: PTAL @ chrome/browser/BUILD.gn and chrome/chrome_browser.gypi (adding dependency for new component, previews).
4 years, 4 months ago (2016-07-28 20:12:21 UTC) #59
Lei Zhang
lgtm https://codereview.chromium.org/2166363003/diff/170001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2166363003/diff/170001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode59 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:59: if (effective_connection_type >= if (comparision_evals_to_bool) return true; return ...
4 years, 4 months ago (2016-07-28 20:41:53 UTC) #60
RyanSturm
Thanks for the quick review. https://codereview.chromium.org/2166363003/diff/170001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc File chrome/browser/android/offline_pages/offline_page_tab_helper.cc (right): https://codereview.chromium.org/2166363003/diff/170001/chrome/browser/android/offline_pages/offline_page_tab_helper.cc#newcode59 chrome/browser/android/offline_pages/offline_page_tab_helper.cc:59: if (effective_connection_type >= On ...
4 years, 4 months ago (2016-07-28 22:07:18 UTC) #63
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/2166363003/190001
4 years, 4 months ago (2016-07-28 22:48:22 UTC) #68
commit-bot: I haz the power
Committed patchset #11 (id:190001)
4 years, 4 months ago (2016-07-28 23:54:14 UTC) #70
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 23:57:23 UTC) #72
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/9d5928c1f4cdfc2ce617c8c4c0c925951a5eb861
Cr-Commit-Position: refs/heads/master@{#408511}

Powered by Google App Engine
This is Rietveld 408576698