New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 676308 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Feature

Blocking:
issue 672479



Sign in to add a comment

[Remote suggestions] Trigger the scheduler when starting-up Chrome / opening a new NTP

Project Member Reported by jkrcal@chromium.org, Dec 21 2016

Issue description

On these events the scheduler (obtained from ContentSuggestionService via the remote_suggestions_scheduler() getter) should be informed by calling its functions:
 - bool OnBrowserStartup()
 - bool OnNTPOpened()

Details for the browser startup (from Bernhard):
 - implement it in chrome/browser/ChromeTabbedActivity.java to finishNativeInitialization.
 - this should go through the java bridge.
 - on the c++ side, add an UMA histogram to measure the impact in percentage of startups where we fetch (what the function OnBrowserStartup() returns is what we need to record in the boolean histogram).

I know nothing about opening NTP - look into the code.

Start with whatever feels easier to implement.
 

Comment 1 by jkrcal@chromium.org, Dec 21 2016

update: 
the histogram will be implemented within OnBrowserStartup(), no need to care about it
Status: Started (was: Assigned)

Comment 3 by fi...@chromium.org, Dec 22 2016

Labels: -Type-Bug zine-triaged Type-Feature
Project Member

Comment 5 by bugdroid1@chromium.org, Jan 5 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/cb5e4457d0cef43f5a3676ee30139fe9be28eaa2

commit cb5e4457d0cef43f5a3676ee30139fe9be28eaa2
Author: fhorschig <fhorschig@chromium.org>
Date: Thu Jan 05 22:05:44 2017

Trigger the Snippets Scheduler when Resuming Activities

Inform the scheduler on resuming activites, so fetching of new
snippets consider this event.

(There is a related CL that triggers a similar event for new tabs:
https://codereview.chromium.org/2592053004/)

BUG= 676308 

Review-Url: https://codereview.chromium.org/2599743002
Cr-Commit-Position: refs/heads/master@{#441768}

[modify] https://crrev.com/cb5e4457d0cef43f5a3676ee30139fe9be28eaa2/chrome/android/java/src/org/chromium/chrome/browser/ChromeTabbedActivity.java
[modify] https://crrev.com/cb5e4457d0cef43f5a3676ee30139fe9be28eaa2/chrome/android/java/src/org/chromium/chrome/browser/init/AsyncInitializationActivity.java
[modify] https://crrev.com/cb5e4457d0cef43f5a3676ee30139fe9be28eaa2/chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java
[modify] https://crrev.com/cb5e4457d0cef43f5a3676ee30139fe9be28eaa2/chrome/browser/android/ntp/ntp_snippets_bridge.cc
[modify] https://crrev.com/cb5e4457d0cef43f5a3676ee30139fe9be28eaa2/chrome/browser/android/ntp/ntp_snippets_bridge.h
[modify] https://crrev.com/cb5e4457d0cef43f5a3676ee30139fe9be28eaa2/components/ntp_snippets/remote/remote_suggestions_scheduler.h
[modify] https://crrev.com/cb5e4457d0cef43f5a3676ee30139fe9be28eaa2/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.cc
[modify] https://crrev.com/cb5e4457d0cef43f5a3676ee30139fe9be28eaa2/components/ntp_snippets/remote/scheduling_remote_suggestions_provider.h

Status: Fixed (was: Started)
The events that we figured out were most useful are implemented:
- one after initialization of a new NTP
- one for a cold start of a browser
- one for any warm resume

Sign in to add a comment