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

Issue 2598573003: Fix for crbug.com/675863 - don't clobber PAUSE state. (Closed)

Created:
4 years ago by Pete Williamson
Modified:
4 years ago
Reviewers:
dougarnett, dewittj
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/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix for crbug.com/675863 - don't clobber PAUSE state. When making a page available for offlining, we were clobbering the pause state. We now check to only change the state to AVAILABLE if it was previously OFFLINING, allowing the PAUSE state to remain unchanged. BUG=675863 Committed: https://crrev.com/ff7cfc31cc358e47ed3b311a97fb6f9a728507dc Cr-Commit-Position: refs/heads/master@{#440212}

Patch Set 1 #

Total comments: 2

Patch Set 2 : CR feedback per DewittJ and DougArnett #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -3 lines) Patch
M components/offline_pages/core/background/mark_attempt_aborted_task_unittest.cc View 1 2 chunks +43 lines, -0 lines 0 comments Download
M components/offline_pages/core/background/save_page_request.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/offline_pages/core/background/save_page_request.cc View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 18 (9 generated)
Pete Williamson
4 years ago (2016-12-21 19:11:16 UTC) #2
dewittj
lg, can you write a test?
4 years ago (2016-12-21 19:13:00 UTC) #3
dougarnett
https://codereview.chromium.org/2598573003/diff/1/components/offline_pages/core/background/save_page_request.cc File components/offline_pages/core/background/save_page_request.cc (right): https://codereview.chromium.org/2598573003/diff/1/components/offline_pages/core/background/save_page_request.cc#newcode85 components/offline_pages/core/background/save_page_request.cc:85: if (state_ == RequestState::OFFLINING) Please update the method comment ...
4 years ago (2016-12-21 19:25:21 UTC) #4
Pete Williamson
Test added per DewittJ, comment updated per DougArnett https://codereview.chromium.org/2598573003/diff/1/components/offline_pages/core/background/save_page_request.cc File components/offline_pages/core/background/save_page_request.cc (right): https://codereview.chromium.org/2598573003/diff/1/components/offline_pages/core/background/save_page_request.cc#newcode85 components/offline_pages/core/background/save_page_request.cc:85: if ...
4 years ago (2016-12-21 19:30:55 UTC) #5
dewittj
lgtm
4 years ago (2016-12-21 19:33:27 UTC) #8
dougarnett
lgtm
4 years ago (2016-12-21 19:33:39 UTC) #9
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/2598573003/20001
4 years ago (2016-12-21 21:00:20 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-21 21:14:33 UTC) #16
commit-bot: I haz the power
4 years ago (2016-12-21 21:19:22 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/ff7cfc31cc358e47ed3b311a97fb6f9a728507dc
Cr-Commit-Position: refs/heads/master@{#440212}

Powered by Google App Engine
This is Rietveld 408576698