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

Issue 2023293002: OfflinePageModel cleanups - improved CanSavePage() and moved static kInvalidOfflineId to impl (Closed)

Created:
4 years, 6 months ago by dougarnett
Modified:
4 years, 6 months ago
Reviewers:
dewittj, fgorski
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

OfflinePageModel cleanups - improved CanSavePage() and moved static kInvalidOfflineId to impl. [Tried to move CanSavePage to OfflinePageUtils but still want to use in components. In the process discovered other cleanup to do on that method.] BUG=615165 Committed: https://crrev.com/128b7c0fff1d970e8c37e2a82b8cb4a168ba9d7f Cr-Commit-Position: refs/heads/master@{#397519}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Put CanSave* static back in Model but with is_valid check and revised name #

Patch Set 3 : Rebased #

Patch Set 4 : Addressed nit #

Total comments: 2

Patch Set 5 : Undid nit fix that cause compile error (as fixing compile error makes less readable that just using… #

Patch Set 6 : synced #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -17 lines) Patch
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/prerendering_offliner.cc View 1 2 3 4 5 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/offline_pages/offline_page_model.h View 1 2 chunks +2 lines, -4 lines 0 comments Download
M components/offline_pages/offline_page_model.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.h View 1 chunk +2 lines, -0 lines 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M components/offline_pages/offline_page_model_impl_unittest.cc View 1 1 chunk +8 lines, -7 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
dougarnett
4 years, 6 months ago (2016-06-01 15:44:50 UTC) #3
dewittj
https://codereview.chromium.org/2023293002/diff/1/chrome/browser/android/offline_pages/offline_page_bridge.cc File chrome/browser/android/offline_pages/offline_page_bridge.cc (right): https://codereview.chromium.org/2023293002/diff/1/chrome/browser/android/offline_pages/offline_page_bridge.cc#newcode158 chrome/browser/android/offline_pages/offline_page_bridge.cc:158: return OfflinePageUtils::CanSaveURL(url); nit: just combine the two lines https://codereview.chromium.org/2023293002/diff/1/components/offline_pages/offline_page_model_impl.cc ...
4 years, 6 months ago (2016-06-01 16:05:04 UTC) #4
dougarnett
https://codereview.chromium.org/2023293002/diff/1/components/offline_pages/offline_page_model_impl.cc File components/offline_pages/offline_page_model_impl.cc (right): https://codereview.chromium.org/2023293002/diff/1/components/offline_pages/offline_page_model_impl.cc#newcode178 components/offline_pages/offline_page_model_impl.cc:178: if (url.is_valid() && !url.SchemeIsHTTPOrHTTPS()) { On 2016/06/01 16:05:04, dewittj ...
4 years, 6 months ago (2016-06-01 16:18:25 UTC) #5
dougarnett
Adding Filip to review. Filip, this CL is step toward the idea of making OfflinePageModel ...
4 years, 6 months ago (2016-06-01 19:27:09 UTC) #7
dewittj
On 2016/06/01 19:27:09, dougarnett wrote: > Adding Filip to review. > > Filip, this CL ...
4 years, 6 months ago (2016-06-01 19:33:17 UTC) #8
fgorski
https://codereview.chromium.org/2023293002/diff/1/components/offline_pages/offline_page_model_impl.cc File components/offline_pages/offline_page_model_impl.cc (right): https://codereview.chromium.org/2023293002/diff/1/components/offline_pages/offline_page_model_impl.cc#newcode178 components/offline_pages/offline_page_model_impl.cc:178: if (url.is_valid() && !url.SchemeIsHTTPOrHTTPS()) { On 2016/06/01 19:27:09, dougarnett ...
4 years, 6 months ago (2016-06-01 20:21:03 UTC) #9
dougarnett
Updated per Filip's comment. Note: trybots seem to be having troubling patching currently. https://codereview.chromium.org/2023293002/diff/1/chrome/browser/android/offline_pages/offline_page_bridge.cc File ...
4 years, 6 months ago (2016-06-01 22:40:22 UTC) #11
fgorski
lgtm https://codereview.chromium.org/2023293002/diff/60001/chrome/browser/android/offline_pages/offline_page_bridge.cc File chrome/browser/android/offline_pages/offline_page_bridge.cc (right): https://codereview.chromium.org/2023293002/diff/60001/chrome/browser/android/offline_pages/offline_page_bridge.cc#newcode157 chrome/browser/android/offline_pages/offline_page_bridge.cc:157: return OfflinePageModel::CanSaveURL(ConvertJavaStringToUTF8(env, j_url)); As you've noticed compilers are ...
4 years, 6 months ago (2016-06-02 16:41:56 UTC) #12
dewittj
lgtm
4 years, 6 months ago (2016-06-02 18:08:41 UTC) #13
dougarnett
https://codereview.chromium.org/2023293002/diff/60001/chrome/browser/android/offline_pages/offline_page_bridge.cc File chrome/browser/android/offline_pages/offline_page_bridge.cc (right): https://codereview.chromium.org/2023293002/diff/60001/chrome/browser/android/offline_pages/offline_page_bridge.cc#newcode157 chrome/browser/android/offline_pages/offline_page_bridge.cc:157: return OfflinePageModel::CanSaveURL(ConvertJavaStringToUTF8(env, j_url)); On 2016/06/02 16:41:56, fgorski wrote: > ...
4 years, 6 months ago (2016-06-02 18:30:55 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2023293002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2023293002/100001
4 years, 6 months ago (2016-06-02 20:10:01 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-02 21:52:38 UTC) #19
commit-bot: I haz the power
4 years, 6 months ago (2016-06-02 21:55:24 UTC) #21
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/128b7c0fff1d970e8c37e2a82b8cb4a168ba9d7f
Cr-Commit-Position: refs/heads/master@{#397519}

Powered by Google App Engine
This is Rietveld 408576698