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

Issue 2606753002: Post notification after fetching articles (Closed)

Created:
3 years, 12 months ago by sfiera
Modified:
3 years, 11 months ago
CC:
chromium-reviews, rginda+watch_chromium.org, noyau+watch_chromium.org, ntp-dev+reviews_chromium.org, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Post notification after fetching articles Notifies unconditionally for the moment; in the future we'll want to gate it on fields provided by the server. Behavior is enabled by the ContentSuggestionsNotifications feature. BUG=675561 Review-Url: https://codereview.chromium.org/2606753002 Cr-Commit-Position: refs/heads/master@{#441648} Committed: https://chromium.googlesource.com/chromium/src/+/b0f63396085a5db6d6366668f84e8c166ee0247d

Patch Set 1 #

Patch Set 2 : nullptr on desktop #

Patch Set 3 : unused on desktop #

Patch Set 4 : override #

Total comments: 10

Patch Set 5 : Address comments #

Total comments: 1

Patch Set 6 : Move feature out to own file. #

Patch Set 7 : Service is not created with context #

Patch Set 8 : Rename tags #

Patch Set 9 : Add TODO. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+412 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java View 1 2 3 4 5 6 7 3 chunks +38 lines, -0 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/android/ntp/content_suggestions_notification_helper.h View 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/android/ntp/content_suggestions_notification_helper.cc View 2 chunks +26 lines, -0 lines 0 comments Download
A chrome/browser/android/ntp/content_suggestions_notifier_service.h View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/android/ntp/content_suggestions_notifier_service.cc View 1 2 3 4 1 chunk +146 lines, -0 lines 0 comments Download
A chrome/browser/ntp_snippets/content_suggestions_notifier_service_factory.h View 5 6 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/ntp_snippets/content_suggestions_notifier_service_factory.cc View 1 2 3 4 5 6 1 chunk +69 lines, -0 lines 0 comments Download
A chrome/browser/ntp_snippets/ntp_snippets_features.h View 1 2 3 4 5 1 chunk +17 lines, -0 lines 2 comments Download
A chrome/browser/ntp_snippets/ntp_snippets_features.cc View 1 2 3 4 5 1 chunk +11 lines, -0 lines 3 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 54 (36 generated)
sfiera
erg: for profile_manager.cc bauerb: for all else Still plenty of features missing, but the most ...
3 years, 12 months ago (2016-12-27 17:48:03 UTC) #17
dgn
Do we need to have a new class for this? Isn't it possible to reuse ...
3 years, 11 months ago (2016-12-28 11:00:26 UTC) #25
sfiera
On 2016/12/28 11:00:26, dgn wrote: > Do we need to have a new class for ...
3 years, 11 months ago (2016-12-28 15:37:18 UTC) #26
Bernhard Bauer
https://codereview.chromium.org/2606753002/diff/80001/chrome/browser/android/ntp/content_suggestions_notifier_service.cc File chrome/browser/android/ntp/content_suggestions_notifier_service.cc (right): https://codereview.chromium.org/2606753002/diff/80001/chrome/browser/android/ntp/content_suggestions_notifier_service.cc#newcode145 chrome/browser/android/ntp/content_suggestions_notifier_service.cc:145: registry->RegisterStringPref(kNotificationIDWithinCategory, ""); Nit: use an empty std::string() constructor to ...
3 years, 11 months ago (2017-01-03 17:38:59 UTC) #27
sfiera
https://codereview.chromium.org/2606753002/diff/80001/chrome/browser/android/ntp/content_suggestions_notifier_service.cc File chrome/browser/android/ntp/content_suggestions_notifier_service.cc (right): https://codereview.chromium.org/2606753002/diff/80001/chrome/browser/android/ntp/content_suggestions_notifier_service.cc#newcode145 chrome/browser/android/ntp/content_suggestions_notifier_service.cc:145: registry->RegisterStringPref(kNotificationIDWithinCategory, ""); On 2017/01/03 17:38:59, Bernhard (just came back) ...
3 years, 11 months ago (2017-01-03 23:13:55 UTC) #28
Elliot Glaysher
https://codereview.chromium.org/2606753002/diff/100001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/2606753002/diff/100001/chrome/browser/profiles/profile_manager.cc#newcode1208 chrome/browser/profiles/profile_manager.cc:1208: ContentSuggestionsNotifierServiceFactory::GetForProfile(profile); Now that you added ServiceIsCreatedWithBrowserContext(), are either of ...
3 years, 11 months ago (2017-01-03 23:21:58 UTC) #31
sfiera
On 2017/01/03 23:21:58, Elliot Glaysher wrote: > https://codereview.chromium.org/2606753002/diff/100001/chrome/browser/profiles/profile_manager.cc > File chrome/browser/profiles/profile_manager.cc (right): > > https://codereview.chromium.org/2606753002/diff/100001/chrome/browser/profiles/profile_manager.cc#newcode1208 ...
3 years, 11 months ago (2017-01-03 23:36:34 UTC) #32
Elliot Glaysher
On 2017/01/03 23:36:34, sfiera wrote: > On 2017/01/03 23:21:58, Elliot Glaysher wrote: > > Now ...
3 years, 11 months ago (2017-01-03 23:53:41 UTC) #33
sfiera
On 2017/01/03 23:53:41, Elliot Glaysher wrote: > On 2017/01/03 23:36:34, sfiera wrote: > > On ...
3 years, 11 months ago (2017-01-04 16:33:36 UTC) #36
Bernhard Bauer
On 2017/01/04 16:33:36, sfiera wrote: > On 2017/01/03 23:53:41, Elliot Glaysher wrote: > > On ...
3 years, 11 months ago (2017-01-04 16:55:08 UTC) #37
sfiera
On 2017/01/04 16:55:08, Bernhard Bauer wrote: > On 2017/01/04 16:33:36, sfiera wrote: > > On ...
3 years, 11 months ago (2017-01-04 19:12:09 UTC) #42
Elliot Glaysher
On 2017/01/04 19:12:09, sfiera wrote: > On 2017/01/04 16:55:08, Bernhard Bauer wrote: > > On ...
3 years, 11 months ago (2017-01-05 01:01:13 UTC) #43
Bernhard Bauer
On 2017/01/05 01:01:13, Elliot Glaysher wrote: > On 2017/01/04 19:12:09, sfiera wrote: > > On ...
3 years, 11 months ago (2017-01-05 09:28:20 UTC) #44
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/2606753002/180001
3 years, 11 months ago (2017-01-05 13:22:41 UTC) #47
fhorschig
Just some minor drive-by questions ... https://codereview.chromium.org/2606753002/diff/180001/chrome/browser/ntp_snippets/ntp_snippets_features.cc File chrome/browser/ntp_snippets/ntp_snippets_features.cc (right): https://codereview.chromium.org/2606753002/diff/180001/chrome/browser/ntp_snippets/ntp_snippets_features.cc#newcode8 chrome/browser/ntp_snippets/ntp_snippets_features.cc:8: "ContentSuggestionsNotifications", base::FEATURE_DISABLED_BY_DEFAULT}; Wouldn't ...
3 years, 11 months ago (2017-01-05 13:24:35 UTC) #49
sfiera
https://codereview.chromium.org/2606753002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java (right): https://codereview.chromium.org/2606753002/diff/80001/chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java#newcode29 chrome/android/java/src/org/chromium/chrome/browser/ntp/ContentSuggestionsNotificationHelper.java:29: private static final String TAG = "ContentSuggestionsNotification"; On 2016/12/28 ...
3 years, 11 months ago (2017-01-05 13:35:02 UTC) #50
Bernhard Bauer
https://codereview.chromium.org/2606753002/diff/180001/chrome/browser/ntp_snippets/ntp_snippets_features.cc File chrome/browser/ntp_snippets/ntp_snippets_features.cc (right): https://codereview.chromium.org/2606753002/diff/180001/chrome/browser/ntp_snippets/ntp_snippets_features.cc#newcode8 chrome/browser/ntp_snippets/ntp_snippets_features.cc:8: "ContentSuggestionsNotifications", base::FEATURE_DISABLED_BY_DEFAULT}; On 2017/01/05 13:35:01, sfiera wrote: > On ...
3 years, 11 months ago (2017-01-05 13:40:58 UTC) #51
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 14:25:22 UTC) #54
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/b0f63396085a5db6d6366668f84e...

Powered by Google App Engine
This is Rietveld 408576698