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

Issue 2249303002: Simplify Observer callbacks (Closed)

Created:
4 years, 4 months ago by Pete Williamson
Modified:
4 years, 4 months ago
Reviewers:
dougarnett, 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

Simplify Observer callbacks We can merge the OnSucceeded, OnFailed, and OnRemoved callbacks into a single OnCompleted callback, with a status to differentiate the disposition of the request. BUG=610521 Committed: https://crrev.com/75839979d7219aa27bf0bba1674e35f3a9c07106 Cr-Commit-Position: refs/heads/master@{#412394}

Patch Set 1 #

Total comments: 4

Patch Set 2 : CR nits - fix TODOs #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -56 lines) Patch
M components/offline_pages/background/request_coordinator.h View 1 4 chunks +5 lines, -11 lines 1 comment Download
M components/offline_pages/background/request_coordinator.cc View 5 chunks +7 lines, -16 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 5 chunks +36 lines, -29 lines 0 comments Download

Messages

Total messages: 16 (9 generated)
Pete Williamson
4 years, 4 months ago (2016-08-16 21:50:07 UTC) #2
fgorski
lgtm https://codereview.chromium.org/2249303002/diff/1/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2249303002/diff/1/components/offline_pages/background/request_coordinator.h#newcode38 components/offline_pages/background/request_coordinator.h:38: enum class SavePageStatus { nit: SavePageStatus might no ...
4 years, 4 months ago (2016-08-16 22:13:25 UTC) #5
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/2249303002/20001
4 years, 4 months ago (2016-08-16 22:59:23 UTC) #10
Pete Williamson
https://codereview.chromium.org/2249303002/diff/1/components/offline_pages/background/request_coordinator.h File components/offline_pages/background/request_coordinator.h (right): https://codereview.chromium.org/2249303002/diff/1/components/offline_pages/background/request_coordinator.h#newcode38 components/offline_pages/background/request_coordinator.h:38: enum class SavePageStatus { On 2016/08/16 22:13:25, fgorski wrote: ...
4 years, 4 months ago (2016-08-16 23:08:52 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-17 00:21:27 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/75839979d7219aa27bf0bba1674e35f3a9c07106 Cr-Commit-Position: refs/heads/master@{#412394}
4 years, 4 months ago (2016-08-17 00:22:58 UTC) #14
dougarnett
4 years, 4 months ago (2016-08-19 20:59:24 UTC) #16
Message was sent while issue was closed.
https://codereview.chromium.org/2249303002/diff/20001/components/offline_page...
File components/offline_pages/background/request_coordinator.h (right):

https://codereview.chromium.org/2249303002/diff/20001/components/offline_page...
components/offline_pages/background/request_coordinator.h:38: // TODO(petewil):
Can we find a better name for this enum?
BackgroundSavePageResult or SavePageLaterResult ?

Powered by Google App Engine
This is Rietveld 408576698