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

Issue 1264013005: customtabs: Add throttling to mayLaunchUrl. (Closed)

Created:
5 years, 4 months ago by Benoit L
Modified:
5 years, 4 months ago
Reviewers:
Ian Wen, Yusuf
CC:
chromium-reviews, ianwen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

customtabs: Add throttling to mayLaunchUrl. This adds a simple throttling policy for mayLaunchUrl(). Each accepted mayLaunchUrl() request increases the delay before accepting the next one. Initial delay is 100ms, and the maximum delay is 10s. Waiting at least 2*current_interval resets the interval to 100ms, as well as correctly predicting the destination URL. Note that the tracking is done by UID (~app) instead of session, as a misbehaving application can open a large number of sessions. BUG=514825 Committed: https://crrev.com/da510f4184d5879d34138e239ba080f7159e3ebd Cr-Commit-Position: refs/heads/master@{#342329}

Patch Set 1 #

Total comments: 2

Patch Set 2 : . #

Patch Set 3 : Rebase. #

Patch Set 4 : Fix test. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -0 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java View 1 2 3 7 chunks +55 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionTest.java View 1 2 3 3 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (6 generated)
Benoit L
5 years, 4 months ago (2015-07-31 13:54:50 UTC) #2
Benoit L
On 2015/07/31 13:54:50, Benoit L wrote: ping :-)
5 years, 4 months ago (2015-08-05 08:45:02 UTC) #3
Ian Wen
https://codereview.chromium.org/1264013005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java (right): https://codereview.chromium.org/1264013005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode99 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:99: * - Initially, one prediction is allowed every 100ms ...
5 years, 4 months ago (2015-08-05 18:35:17 UTC) #4
Benoit L
https://codereview.chromium.org/1264013005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java (right): https://codereview.chromium.org/1264013005/diff/1/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode99 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:99: * - Initially, one prediction is allowed every 100ms ...
5 years, 4 months ago (2015-08-06 14:59:07 UTC) #5
Yusuf
lgtm
5 years, 4 months ago (2015-08-06 15:04:01 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1264013005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1264013005/40001
5 years, 4 months ago (2015-08-06 15:06:00 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/52733)
5 years, 4 months ago (2015-08-06 16:46:32 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1264013005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1264013005/60001
5 years, 4 months ago (2015-08-07 09:41:27 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-08-07 10:19:36 UTC) #15
commit-bot: I haz the power
5 years, 4 months ago (2015-08-07 10:20:10 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/da510f4184d5879d34138e239ba080f7159e3ebd
Cr-Commit-Position: refs/heads/master@{#342329}

Powered by Google App Engine
This is Rietveld 408576698