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

Issue 2592053004: Call the Scheduler when opening the NTP. (Closed)

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

Description

Call the Scheduler when opening the NTP. When a NTP is created, the scheduler is informed and can consider this event in scheduling the fetching of new snippets. BUG=676308 Committed: https://crrev.com/b29ba3730a14e6ee4f7836802caf1853aabf3772 Cr-Commit-Position: refs/heads/master@{#441129}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed the compile errors #

Patch Set 3 : Renamed to OnNTPInitialized. #

Total comments: 2

Patch Set 4 : CamelCase'd initilialism. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetsBridge.java View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/android/ntp/ntp_snippets_bridge.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/android/ntp/ntp_snippets_bridge.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (18 generated)
fhorschig
Hi Bernhard, could you please take a look if this is the right place for ...
3 years, 12 months ago (2016-12-21 18:27:05 UTC) #2
Michael van Ouwerkerk
Bernhard is OOO but I can try :-) https://codereview.chromium.org/2592053004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java (right): https://codereview.chromium.org/2592053004/diff/1/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java#newcode750 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java:750: mSnippetsBridge.onNTPOpened(); ...
3 years, 12 months ago (2016-12-22 11:38:33 UTC) #5
fhorschig
Thank you for stepping in Michael! It's unlikely that we intend to update the NTP ...
3 years, 12 months ago (2016-12-22 12:26:50 UTC) #8
jkrcal
On 2016/12/22 12:26:50, fhorschig wrote: > Thank you for stepping in Michael! > It's unlikely ...
3 years, 12 months ago (2016-12-22 12:35:04 UTC) #9
Michael van Ouwerkerk
This change lgtm. Do we have test coverage for the scheduler somewhere? It seems like ...
3 years, 12 months ago (2016-12-22 14:03:15 UTC) #10
fhorschig
treib@chromium.org: Please review changes in snippets_bridge.* @Michael: Yes, testing will be tricky. Test could be ...
3 years, 12 months ago (2016-12-22 15:40:17 UTC) #13
fhorschig
Hi Bernhard, would you please take a look?
3 years, 11 months ago (2017-01-03 14:44:22 UTC) #16
Bernhard Bauer
LGTM with a nit: https://codereview.chromium.org/2592053004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java (right): https://codereview.chromium.org/2592053004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java#newcode758 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java:758: mSnippetsBridge.onNTPInitialized(); Nit: The Java/Android convention ...
3 years, 11 months ago (2017-01-03 15:05:11 UTC) #17
fhorschig
Thank you for the quick reaction! https://codereview.chromium.org/2592053004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java File chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java (right): https://codereview.chromium.org/2592053004/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java#newcode758 chrome/android/java/src/org/chromium/chrome/browser/ntp/NewTabPage.java:758: mSnippetsBridge.onNTPInitialized(); On 2017/01/03 ...
3 years, 11 months ago (2017-01-03 15:16:40 UTC) #20
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/2592053004/60001
3 years, 11 months ago (2017-01-03 15:50:13 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
3 years, 11 months ago (2017-01-03 15:54:11 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-03 15:57:06 UTC) #30
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/b29ba3730a14e6ee4f7836802caf1853aabf3772
Cr-Commit-Position: refs/heads/master@{#441129}

Powered by Google App Engine
This is Rietveld 408576698