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

Issue 2212313002: Call FetchImageCallback asynchronously when no thumbnail exists (Closed)

Created:
4 years, 4 months ago by Philipp Keck
Modified:
4 years, 4 months ago
Reviewers:
Marc Treib
CC:
chromium-reviews, ntp-dev+reviews_chromium.org, Bernhard Bauer
Base URL:
https://chromium.googlesource.com/chromium/src.git@bookmarksprovider
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Call FetchImageCallback asynchronously when no thumbnail exists When a thumbnail image for a ContentSuggestion is requested by the UI and the thumbnail cannot be delivered for any reason, run the callback with an empty image asynchronously to be consistent with normal callback behaviors. BUG=619560 Committed: https://crrev.com/1da90606faecfcd9ee888953ef7360037efd2ecb Cr-Commit-Position: refs/heads/master@{#410055}

Patch Set 1 #

Patch Set 2 : Simplify calls, include headers #

Patch Set 3 : Adjust ContentSuggestionsServiceTest #

Total comments: 5

Patch Set 4 : Marc's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -10 lines) Patch
M components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M components/ntp_snippets/content_suggestions_service.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M components/ntp_snippets/content_suggestions_service_unittest.cc View 1 2 3 3 chunks +15 lines, -6 lines 0 comments Download
M components/ntp_snippets/offline_pages/offline_page_suggestions_provider.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download

Depends on Patchset:

Messages

Total messages: 10 (4 generated)
Philipp Keck
PTAL Previous discussion is here: https://codereview.chromium.org/2214683002/diff/20001/components/ntp_snippets/bookmarks/bookmark_suggestions_provider.cc#newcode71
4 years, 4 months ago (2016-08-05 08:28:15 UTC) #2
Marc Treib
LGTM, thanks! https://codereview.chromium.org/2212313002/diff/40001/components/ntp_snippets/content_suggestions_service_unittest.cc File components/ntp_snippets/content_suggestions_service_unittest.cc (right): https://codereview.chromium.org/2212313002/diff/40001/components/ntp_snippets/content_suggestions_service_unittest.cc#newcode269 components/ntp_snippets/content_suggestions_service_unittest.cc:269: base::RunLoop run_loop_; run_loop (no trailing underscore) https://codereview.chromium.org/2212313002/diff/40001/components/ntp_snippets/content_suggestions_service_unittest.cc#newcode273 ...
4 years, 4 months ago (2016-08-05 09:55:21 UTC) #3
Philipp Keck
https://codereview.chromium.org/2212313002/diff/40001/components/ntp_snippets/content_suggestions_service_unittest.cc File components/ntp_snippets/content_suggestions_service_unittest.cc (right): https://codereview.chromium.org/2212313002/diff/40001/components/ntp_snippets/content_suggestions_service_unittest.cc#newcode269 components/ntp_snippets/content_suggestions_service_unittest.cc:269: base::RunLoop run_loop_; On 2016/08/05 09:55:20, Marc Treib wrote: > ...
4 years, 4 months ago (2016-08-05 10:01:39 UTC) #4
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/2212313002/60001
4 years, 4 months ago (2016-08-05 13:33:07 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 4 months ago (2016-08-05 14:20:42 UTC) #8
commit-bot: I haz the power
4 years, 4 months ago (2016-08-05 14:21:52 UTC) #10
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/1da90606faecfcd9ee888953ef7360037efd2ecb
Cr-Commit-Position: refs/heads/master@{#410055}

Powered by Google App Engine
This is Rietveld 408576698