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

Issue 2234873004: Have the RequestCoordinator generate the offline_id (Closed)

Created:
4 years, 4 months ago by Pete Williamson
Modified:
4 years, 4 months ago
CC:
dougarnett, chromium-reviews, cbentzel+watch_chromium.org, dewittj+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, romax+watch_chromium.org, petewil+watch_chromium.org, gavinp+prer_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

So that the RequestCoordinator can return the offline id of the saved page, we make it the same as the request id. So, the RequestCoordinator will generate an offline ID, and it will get passed through to the OfflinePageModel's SavePage method (by the prerendering offliner), which will be used when the page is saved. BUG=610521 Committed: https://crrev.com/1c20830eec369c944377f806b4a025e19ead9475 Cr-Commit-Position: refs/heads/master@{#412315}

Patch Set 1 #

Patch Set 2 : Have the RequestCoordinator generate the offline_id #

Patch Set 3 : merge fix #

Patch Set 4 : fix compile warning about const #

Total comments: 4

Patch Set 5 : Merge, and CR fixes per Dimich #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -37 lines) Patch
M chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/offline_pages/offline_page_tab_helper_unittest.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/android/offline_pages/offline_page_utils_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.h View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner_unittest.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 2 3 4 1 chunk +4 lines, -5 lines 1 comment Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 4 3 chunks +10 lines, -6 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M components/offline_pages/offline_page_model_impl.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 2 3 4 2 chunks +7 lines, -4 lines 1 comment Download
M components/offline_pages/offline_page_model_impl_unittest.cc View 1 2 3 4 7 chunks +7 lines, -7 lines 0 comments Download
M components/offline_pages/stub_offline_page_model.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/stub_offline_page_model.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 35 (26 generated)
Pete Williamson
4 years, 4 months ago (2016-08-15 20:10:59 UTC) #9
Pete Williamson
The changelist failed to merge, might want to hold off reviewing until I have it ...
4 years, 4 months ago (2016-08-16 01:07:51 UTC) #20
Dmitry Titov
https://codereview.chromium.org/2234873004/diff/60001/chrome/browser/android/offline_pages/prerendering_offliner.h File chrome/browser/android/offline_pages/prerendering_offliner.h (right): https://codereview.chromium.org/2234873004/diff/60001/chrome/browser/android/offline_pages/prerendering_offliner.h#newcode56 chrome/browser/android/offline_pages/prerendering_offliner.h:56: int64_t offline_id, Naming suggestion: maybe proposed_offline_id? To capture the ...
4 years, 4 months ago (2016-08-16 02:25:00 UTC) #21
Pete Williamson
https://codereview.chromium.org/2234873004/diff/60001/chrome/browser/android/offline_pages/prerendering_offliner.h File chrome/browser/android/offline_pages/prerendering_offliner.h (right): https://codereview.chromium.org/2234873004/diff/60001/chrome/browser/android/offline_pages/prerendering_offliner.h#newcode56 chrome/browser/android/offline_pages/prerendering_offliner.h:56: int64_t offline_id, On 2016/08/16 02:25:00, Dmitry Titov wrote: > ...
4 years, 4 months ago (2016-08-16 18:54:56 UTC) #23
Dmitry Titov
lgtm
4 years, 4 months ago (2016-08-16 19:18:13 UTC) #25
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/2234873004/80001
4 years, 4 months ago (2016-08-16 20:05:40 UTC) #29
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-08-16 20:10:37 UTC) #31
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/1c20830eec369c944377f806b4a025e19ead9475 Cr-Commit-Position: refs/heads/master@{#412315}
4 years, 4 months ago (2016-08-16 20:13:54 UTC) #33
dougarnett
4 years, 4 months ago (2016-08-18 17:59:08 UTC) #35
Message was sent while issue was closed.
late look

https://codereview.chromium.org/2234873004/diff/80001/chrome/browser/android/...
File chrome/browser/android/offline_pages/recent_tab_helper.cc (right):

https://codereview.chromium.org/2234873004/diff/80001/chrome/browser/android/...
chrome/browser/android/offline_pages/recent_tab_helper.cc:169:
page_model_->SavePage(snapshot_url_, client_id(), 0ul,
possibly dumb C++ question: why are you using "u" when the type seems to be
signed (int64_t)?

https://codereview.chromium.org/2234873004/diff/80001/components/offline_page...
File components/offline_pages/offline_page_model_impl.cc (right):

https://codereview.chromium.org/2234873004/diff/80001/components/offline_page...
components/offline_pages/offline_page_model_impl.cc:299: if (proposed_offline_id
== 0ul)
negative proposed ids ok?

Powered by Google App Engine
This is Rietveld 408576698