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

Unified Diff: chrome/browser/android/ntp/ntp_snippets_launcher.cc

Issue 2357163004: [NTP Snippets] Remove scheduled re-scheduling (Closed)
Patch Set: super-nit, rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/ntp/ntp_snippets_launcher.cc
diff --git a/chrome/browser/android/ntp/ntp_snippets_launcher.cc b/chrome/browser/android/ntp/ntp_snippets_launcher.cc
index 8e250f772fe8fd48be70ff0c363169973f22d172..1fb4d9e5d3c12fcab5201808387c8cc119bde9b6 100644
--- a/chrome/browser/android/ntp/ntp_snippets_launcher.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_launcher.cc
@@ -24,14 +24,13 @@ NTPSnippetsLauncher* NTPSnippetsLauncher::Get() {
}
bool NTPSnippetsLauncher::Schedule(base::TimeDelta period_wifi,
- base::TimeDelta period_fallback,
- base::Time reschedule_time) {
+ base::TimeDelta period_fallback) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
JNIEnv* env = base::android::AttachCurrentThread();
- return Java_SnippetsLauncher_schedule(
- env, java_launcher_, period_wifi.InSeconds(), period_fallback.InSeconds(),
- reschedule_time.ToJavaTime());
+ return Java_SnippetsLauncher_schedule(env, java_launcher_,
+ period_wifi.InSeconds(),
+ period_fallback.InSeconds());
}
bool NTPSnippetsLauncher::Unschedule() {
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_launcher.h ('k') | components/ntp_snippets/ntp_snippets_scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698