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

Issue 2755753005: [Offline Pages] Add Android version check for timeout in offliner policy. (Closed)

Created:
3 years, 9 months ago by romax
Modified:
3 years, 9 months ago
Reviewers:
Pete Williamson
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
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline Pages] Add Android version check for timeout in offliner policy. Since the doze mode only exists after Android 6.0, adding a check in order to change to a longer timeout when the system has no doze mode. BUG=701035 Review-Url: https://codereview.chromium.org/2755753005 Cr-Commit-Position: refs/heads/master@{#459274} Committed: https://chromium.googlesource.com/chromium/src/+/15a0b4f782f55474f51b073f583a974b5f2bf63f

Patch Set 1 #

Total comments: 4

Patch Set 2 : comments. #

Patch Set 3 : fix build #

Patch Set 4 : fix test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -33 lines) Patch
M components/offline_pages/core/background/offliner_policy.h View 1 2 6 chunks +32 lines, -12 lines 0 comments Download
M components/offline_pages/core/background/pick_request_task_unittest.cc View 1 7 chunks +18 lines, -19 lines 0 comments Download
M components/offline_pages/core/background/request_coordinator_unittest.cc View 1 2 3 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (21 generated)
romax
PTAL, thanks! https://codereview.chromium.org/2755753005/diff/1/components/offline_pages/core/background/offliner_policy.h File components/offline_pages/core/background/offliner_policy.h (right): https://codereview.chromium.org/2755753005/diff/1/components/offline_pages/core/background/offliner_policy.h#newcode68 components/offline_pages/core/background/offliner_policy.h:68: has_doze_mode_ = false; not sure if it's ...
3 years, 9 months ago (2017-03-17 02:58:34 UTC) #2
Pete Williamson
Mostly looks good, one suggestion. Also, I started a CQ dry run for you to ...
3 years, 9 months ago (2017-03-17 21:05:55 UTC) #4
romax
replied to comments. PTAnL, thanks! https://codereview.chromium.org/2755753005/diff/1/components/offline_pages/core/background/offliner_policy.h File components/offline_pages/core/background/offliner_policy.h (right): https://codereview.chromium.org/2755753005/diff/1/components/offline_pages/core/background/offliner_policy.h#newcode68 components/offline_pages/core/background/offliner_policy.h:68: has_doze_mode_ = false; On ...
3 years, 9 months ago (2017-03-23 21:56:37 UTC) #19
Pete Williamson
lgtm https://codereview.chromium.org/2755753005/diff/1/components/offline_pages/core/background/offliner_policy.h File components/offline_pages/core/background/offliner_policy.h (right): https://codereview.chromium.org/2755753005/diff/1/components/offline_pages/core/background/offliner_policy.h#newcode68 components/offline_pages/core/background/offliner_policy.h:68: has_doze_mode_ = false; On 2017/03/23 21:56:37, romax wrote: ...
3 years, 9 months ago (2017-03-23 22:52:53 UTC) #22
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/2755753005/80001
3 years, 9 months ago (2017-03-23 23:16:27 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:80001) as https://chromium.googlesource.com/chromium/src/+/15a0b4f782f55474f51b073f583a974b5f2bf63f
3 years, 9 months ago (2017-03-23 23:24:01 UTC) #27
fgorski
On 2017/03/23 23:24:01, commit-bot: I haz the power wrote: > Committed patchset #4 (id:80001) as ...
3 years, 9 months ago (2017-03-26 05:37:12 UTC) #28
romax
3 years, 9 months ago (2017-03-27 17:33:45 UTC) #29
Message was sent while issue was closed.
A revert of this CL (patchset #4 id:80001) has been created in
https://codereview.chromium.org/2776203003/ by romax@chromium.org.

The reason for reverting is: As described in the bug by fgorski@, we shouldn't
go longer than 3 minutes since that's the timeout on GCMNetworkManager..

Powered by Google App Engine
This is Rietveld 408576698