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

Issue 2478243006: Force sessions invalidations on for Android clients with foreign tabs suggestions feature. (Closed)

Created:
4 years, 1 month ago by skym
Modified:
4 years, 1 month ago
Reviewers:
nyquist
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Force sessions invalidations on for Android clients with foreign tabs suggestions feature. When the foreign tabs suggestion feature is enabled (its currently at 0%, can be enabled via command line or flag page, hope to dial up in future), it suggests pages that are the most recent open tabs on other devices. These suggestions show up on the NewTabPage (currently only on Android). These suggestions really just display data from Sync's SESSION data type. This data type is typically enabled for syncing on most devices, but invalidations are disabled on Android clients for improved battery performance. Invalidations are the main mechanism that Sync uses to know when it needs to call GetUpdates and get the most recent data. Disabling SESSION invalidations typically doesn't harm Android users. SESSION data is only used on a few UI surfaces, and when those surfaces are loaded we temporarily re-register for SESSION invalidations. Unfortunately, this approach doesn't work very well here because visiting the NewTabPage is such a frequent user action. This would result in a lot of traffic and wasted network usage to the invalidations server. Having stale data means having your local client won't know about open tabs on other devices, and suggestions not being made when you know they should. This causes and inconsistent and less useful experience for the user. By forcing SESSION invalidations to on for anyone that has the foreign tabs suggestion feature enabled, it ensures we have fresh data and are able to suggestion the most value (most recent) pages. The main cost is that we lose the battery life saving of the aforementioned optimization. BUG=649881 Committed: https://crrev.com/0b0d32497cd7d2e19bee336cfc89d048bfc59de6 Cr-Commit-Position: refs/heads/master@{#430362}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ChromeFeatureList.java View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/invalidation/InvalidationController.java View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/android/chrome_feature_list.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 19 (13 generated)
skym
PTAL
4 years, 1 month ago (2016-11-05 00:53:43 UTC) #4
nyquist
lgtm, but could you expand the CL description a bit? You already have a great ...
4 years, 1 month ago (2016-11-07 18:54:32 UTC) #7
skym
Added a lot of words to CL description.
4 years, 1 month ago (2016-11-07 19:56:37 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/2478243006/1
4 years, 1 month ago (2016-11-07 19:57:27 UTC) #15
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-07 20:38:41 UTC) #17
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 21:18:50 UTC) #19
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0b0d32497cd7d2e19bee336cfc89d048bfc59de6
Cr-Commit-Position: refs/heads/master@{#430362}

Powered by Google App Engine
This is Rietveld 408576698