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

Issue 2190353002: 📰Fix SnippetsService's status reporting (Closed)

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

Description

[NTP Client] Fix SnippetsService's status reporting During the initial phases of the snippets service lifetime, it currently reports frequent state changes and does not use AVAILABLE_LOADING at all to notify its observers that it is currently fetching. This CL aims at fixing that to allow showing more useful information to the user. BUG=627488 Committed: https://crrev.com/0bfd38b0fbfd42e7224b4b07430b781119036387 Cr-Commit-Position: refs/heads/master@{#409002}

Patch Set 1 #

Total comments: 15

Patch Set 2 : cleanup #

Total comments: 4

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -9 lines) Patch
M components/ntp_snippets/ntp_snippets_service.h View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M components/ntp_snippets/ntp_snippets_service.cc View 1 2 10 chunks +28 lines, -6 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
dgn
PTAL. There are some aspects of the SnippetsService I don't completely understand, mostly related to ...
4 years, 4 months ago (2016-07-29 09:58:36 UTC) #2
Marc Treib
Some comments, Philipp might have more... :) https://codereview.chromium.org/2190353002/diff/1/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2190353002/diff/1/components/ntp_snippets/ntp_snippets_service.cc#newcode263 components/ntp_snippets/ntp_snippets_service.cc:263: EnterState(state_, ContentSuggestionsCategoryStatus::AVAILABLE_LOADING); ...
4 years, 4 months ago (2016-07-29 10:19:47 UTC) #4
dgn
https://codereview.chromium.org/2190353002/diff/1/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2190353002/diff/1/components/ntp_snippets/ntp_snippets_service.cc#newcode263 components/ntp_snippets/ntp_snippets_service.cc:263: EnterState(state_, ContentSuggestionsCategoryStatus::AVAILABLE_LOADING); On 2016/07/29 10:19:47, Marc Treib wrote: > ...
4 years, 4 months ago (2016-07-29 10:42:48 UTC) #5
Marc Treib
https://codereview.chromium.org/2190353002/diff/1/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2190353002/diff/1/components/ntp_snippets/ntp_snippets_service.cc#newcode263 components/ntp_snippets/ntp_snippets_service.cc:263: EnterState(state_, ContentSuggestionsCategoryStatus::AVAILABLE_LOADING); On 2016/07/29 10:42:48, dgn wrote: > On ...
4 years, 4 months ago (2016-07-29 10:45:46 UTC) #6
dgn
PTAL. The new implementation does the following: Start => INITIALIZING DBLoaded => If has snippets ...
4 years, 4 months ago (2016-07-29 16:37:46 UTC) #7
Marc Treib
LGTM, but please wait for Philipp to take a look before landing. Thanks! https://codereview.chromium.org/2190353002/diff/1/components/ntp_snippets/ntp_snippets_service.cc File ...
4 years, 4 months ago (2016-08-01 09:03:32 UTC) #8
Philipp Keck
lgtm -- maybe found a corner case, see below? https://codereview.chromium.org/2190353002/diff/20001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2190353002/diff/20001/components/ntp_snippets/ntp_snippets_service.cc#newcode461 components/ntp_snippets/ntp_snippets_service.cc:461: ...
4 years, 4 months ago (2016-08-01 09:14:10 UTC) #9
Marc Treib
https://codereview.chromium.org/2190353002/diff/20001/components/ntp_snippets/ntp_snippets_service.cc File components/ntp_snippets/ntp_snippets_service.cc (right): https://codereview.chromium.org/2190353002/diff/20001/components/ntp_snippets/ntp_snippets_service.cc#newcode461 components/ntp_snippets/ntp_snippets_service.cc:461: DCHECK(category_status_ == ContentSuggestionsCategoryStatus::AVAILABLE || On 2016/08/01 09:14:10, Philipp Keck ...
4 years, 4 months ago (2016-08-01 09:34:34 UTC) #10
dgn
Thanks. I'll update the CL about the UI changes (https://codereview.chromium.org/2191593002/) based on this to make ...
4 years, 4 months ago (2016-08-01 10:54:40 UTC) #11
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/2190353002/20001
4 years, 4 months ago (2016-08-01 17:01:51 UTC) #13
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/2190353002/40001
4 years, 4 months ago (2016-08-01 17:24:16 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 4 months ago (2016-08-01 18:27:39 UTC) #23
commit-bot: I haz the power
4 years, 4 months ago (2016-08-01 18:33:06 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0bfd38b0fbfd42e7224b4b07430b781119036387
Cr-Commit-Position: refs/heads/master@{#409002}

Powered by Google App Engine
This is Rietveld 408576698