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

Issue 1843893002: Support resaving offline page right after it is being deleted (Closed)

Created:
4 years, 8 months ago by jianli
Modified:
4 years, 8 months ago
Reviewers:
fgorski
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Support resaving offline page right after it is being deleted BUG=597398 Committed: https://crrev.com/661a94d42b5131ea7d2770c445131c39c6740eb6 Cr-Commit-Position: refs/heads/master@{#384151}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Address feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -29 lines) Patch
M chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h View 1 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc View 1 4 chunks +12 lines, -11 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_mhtml_archiver_unittest.cc View 1 8 chunks +14 lines, -11 lines 0 comments Download
M components/offline_pages/offline_page_archiver.h View 1 chunk +4 lines, -2 lines 0 comments Download
M components/offline_pages/offline_page_model.cc View 1 chunk +5 lines, -3 lines 0 comments Download
M components/offline_pages/offline_page_model_unittest.cc View 1 1 chunk +35 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_test_archiver.h View 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/offline_page_test_archiver.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
jianli
4 years, 8 months ago (2016-03-30 00:37:26 UTC) #2
fgorski
lgtm, but consider dropping url_hash and fix compilation problems. https://codereview.chromium.org/1843893002/diff/1/chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc File chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc (right): https://codereview.chromium.org/1843893002/diff/1/chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc#newcode43 chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc:43: ...
4 years, 8 months ago (2016-03-30 01:43:30 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1843893002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1843893002/20001
4 years, 8 months ago (2016-03-30 23:17:07 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-03-31 00:06:28 UTC) #7
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/661a94d42b5131ea7d2770c445131c39c6740eb6 Cr-Commit-Position: refs/heads/master@{#384151}
4 years, 8 months ago (2016-03-31 00:08:04 UTC) #9
jianli
4 years, 8 months ago (2016-03-31 21:02:43 UTC) #10
Message was sent while issue was closed.
https://codereview.chromium.org/1843893002/diff/1/chrome/browser/android/offl...
File chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc
(right):

https://codereview.chromium.org/1843893002/diff/1/chrome/browser/android/offl...
chrome/browser/android/offline_pages/offline_page_mhtml_archiver.cc:43:
base::Base64Encode(url_hash, &url_hash);
On 2016/03/30 01:43:29, fgorski wrote:
> if we are adding offline_id here, do we still need a url_hash?

Done.

https://codereview.chromium.org/1843893002/diff/1/chrome/browser/android/offl...
File chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h (right):

https://codereview.chromium.org/1843893002/diff/1/chrome/browser/android/offl...
chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h:52: int64_t
id);
On 2016/03/30 01:43:30, fgorski wrote:
> nit: be consistent with naming, especially if this is archive_id

Done.

https://codereview.chromium.org/1843893002/diff/1/chrome/browser/android/offl...
chrome/browser/android/offline_pages/offline_page_mhtml_archiver.h:69: int64_t
archive_id);
On 2016/03/30 01:43:30, fgorski wrote:
> Seems like there is a compilation error here somewhere.

Done.

https://codereview.chromium.org/1843893002/diff/1/components/offline_pages/of...
File components/offline_pages/offline_page_model_unittest.cc (right):

https://codereview.chromium.org/1843893002/diff/1/components/offline_pages/of...
components/offline_pages/offline_page_model_unittest.cc:491:
TEST_F(OfflinePageModelTest, ResavePageAfterMarkingPageForDeletion) {
On 2016/03/30 01:43:30, fgorski wrote:
> SavePageAfter...

Done.

Powered by Google App Engine
This is Rietveld 408576698