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

Issue 2542833003: Failed offline snapshots won't erase a successful one from the same page load. (Closed)

Created:
4 years ago by carlosk
Modified:
4 years ago
Reviewers:
fgorski, 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

Failed offline snapshots won't erase a successful one from the same page load. If a second offline snapshot starts for the same page load where a previous one was saved, it should not immediately delete it: as it might fail the user would end up with no offline copy of the page. This change fixes this issue. Three new tests are added: one to cover this precise case and a couple more to check for related situations. Also many comments were added or updated. BUG=655697 Committed: https://crrev.com/96de1925bdf5c051bb903581a427d7f9795c0032 Cr-Commit-Position: refs/heads/master@{#436086}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix link error and address reviewer comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -9 lines) Patch
M chrome/browser/android/offline_pages/recent_tab_helper.h View 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 4 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper_unittest.cc View 11 chunks +153 lines, -7 lines 0 comments Download
M components/offline_pages/offline_page_test_archiver.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (12 generated)
carlosk
fgorski@: PTAL.
4 years ago (2016-12-02 02:43:56 UTC) #4
fgorski
lgtm mod the compilation issue and one nit. https://codereview.chromium.org/2542833003/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc File chrome/browser/android/offline_pages/recent_tab_helper.cc (right): https://codereview.chromium.org/2542833003/diff/1/chrome/browser/android/offline_pages/recent_tab_helper.cc#newcode234 chrome/browser/android/offline_pages/recent_tab_helper.cc:234: for ...
4 years ago (2016-12-02 19:07:38 UTC) #7
carlosk
Thanks. The build error was due to my changing a call to base::MakeUnique to directly ...
4 years ago (2016-12-02 22:48:51 UTC) #10
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/2542833003/20001
4 years ago (2016-12-02 22:49:56 UTC) #13
dewittj
fyi, the link error is due to violating the ODR http://en.cppreference.com/w/cpp/language/static the pertinent section is: ...
4 years ago (2016-12-02 23:21:36 UTC) #15
carlosk
On 2016/12/02 23:21:36, dewittj wrote: > fyi, the link error is due to violating the ...
4 years ago (2016-12-02 23:50:03 UTC) #16
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/96de1925bdf5c051bb903581a427d7f9795c0032 Cr-Commit-Position: refs/heads/master@{#436086}
4 years ago (2016-12-03 00:03:20 UTC) #19
carlosk
4 years ago (2016-12-08 19:19:27 UTC) #20
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2561163002/ by carlosk@chromium.org.

The reason for reverting is: This created a new issue: https://crbug.com/671955.


And the approach to fix this will be different:
- The problem this CL fixes will decrease in importance once MHTML generation
stops failing because of missing iframes: https://crbug.com/655708
- We intend to soon refactor RecentTabHelper and that should finally fix this
issue.
.

Powered by Google App Engine
This is Rietveld 408576698