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

Issue 2086733002: [Offline Pages] Fix cases where returning NOT_FOUND when deleting. (Closed)

Created:
4 years, 6 months ago by romax
Modified:
4 years, 6 months ago
Reviewers:
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

[Offline Pages] Fix cases where returning NOT_FOUND when deleting. We were returning NOT_FOUND when trying to delete an empty list of offline ids instead of SUCCESS. NOT_FOUND should only be used only when some ids that were passed in cannot be found in the database. BUG=608057 Committed: https://crrev.com/2c0a99cc4e0b602137448367b4b070875e6e0d67 Cr-Commit-Position: refs/heads/master@{#401353}

Patch Set 1 #

Patch Set 2 : Resolve a todo related. #

Total comments: 4

Patch Set 3 : Removing NOT_FOUND. #

Total comments: 1

Patch Set 4 : Fix comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -11 lines) Patch
M chrome/android/javatests/src/org/chromium/chrome/browser/offlinepages/OfflinePageBridgeTest.java View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 1 chunk +1 line, -4 lines 0 comments Download
M components/offline_pages/offline_page_model.h View 1 chunk +1 line, -1 line 0 comments Download
M components/offline_pages/offline_page_model_impl.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M components/offline_pages/offline_page_model_impl_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M components/offline_pages/offline_page_types.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
romax
PTAL. I'm not sure if the DeletePagesByURLPredicate should return NOT_FOUND when there's no page found. ...
4 years, 6 months ago (2016-06-20 23:22:44 UTC) #2
fgorski
Hey, per your comment to the patch and our discussion. Let's get rid of NOT_FOUND. ...
4 years, 6 months ago (2016-06-21 18:02:24 UTC) #3
romax
PTAL https://codereview.chromium.org/2086733002/diff/20001/components/offline_pages/offline_page_model_impl.cc File components/offline_pages/offline_page_model_impl.cc (right): https://codereview.chromium.org/2086733002/diff/20001/components/offline_pages/offline_page_model_impl.cc#newcode358 components/offline_pages/offline_page_model_impl.cc:358: // Shortcut here, if none of the offline ...
4 years, 6 months ago (2016-06-21 19:41:37 UTC) #4
fgorski
lgtm with nit https://codereview.chromium.org/2086733002/diff/40001/components/offline_pages/offline_page_types.h File components/offline_pages/offline_page_types.h (right): https://codereview.chromium.org/2086733002/diff/40001/components/offline_pages/offline_page_types.h#newcode51 components/offline_pages/offline_page_types.h:51: NOT_FOUND, // Deprecated. Should not be ...
4 years, 6 months ago (2016-06-21 19:52:24 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2086733002/60001
4 years, 6 months ago (2016-06-22 18:11:37 UTC) #8
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 6 months ago (2016-06-22 18:19:26 UTC) #9
commit-bot: I haz the power
4 years, 6 months ago (2016-06-22 18:22:40 UTC) #11
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2c0a99cc4e0b602137448367b4b070875e6e0d67
Cr-Commit-Position: refs/heads/master@{#401353}

Powered by Google App Engine
This is Rietveld 408576698