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

Issue 1420913007: customtabs: Create a spare WebContents in warmup() on non low-end devices. (Closed)

Created:
5 years, 1 month ago by Benoit L
Modified:
3 years, 10 months ago
Reviewers:
pasko, Yusuf
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

customtabs: Create a spare WebContents in warmup() on non low-end devices. A pre-created renderer is not specific to a given navigation, which means that we can create it in warmup(). This is not done on low-end devices, as the memory cost is more significant in this case. The behavior is: - When warmup() is called, create a spare WebContents, unless there is already a prerendered one. This WebContents requests a renderer. - If this renderer dies, then don't revive it. - A prerender destroys this WebContents, as it cannot currently re-use the same one. - Calling warmup() again when the spare WebContents has been taken will re-create a new one. This is checked by tests. BUG=548704 Committed: https://crrev.com/c9f5539fb08bf8d5979b2de283f27b936cdc33bb Cr-Commit-Position: refs/heads/master@{#356894}

Patch Set 1 #

Patch Set 2 : Cosmetic changes. #

Total comments: 8

Patch Set 3 : Naming. #

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

Messages

Total messages: 10 (3 generated)
Benoit L
5 years, 1 month ago (2015-10-28 16:50:07 UTC) #2
pasko
lgtm with nits https://codereview.chromium.org/1420913007/diff/20001/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/1420913007/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode134 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:134: private static void oneTimeInitialization(final ChromeApplication app) ...
5 years, 1 month ago (2015-10-29 13:38:58 UTC) #3
Yusuf
lgtm with nits as well https://codereview.chromium.org/1420913007/diff/20001/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/1420913007/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode172 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:172: final boolean firstTime = ...
5 years, 1 month ago (2015-10-29 16:35:27 UTC) #4
Benoit L
Thanks! https://codereview.chromium.org/1420913007/diff/20001/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/1420913007/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java#newcode134 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java:134: private static void oneTimeInitialization(final ChromeApplication app) { On ...
5 years, 1 month ago (2015-10-29 17:12:36 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420913007/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420913007/40001
5 years, 1 month ago (2015-10-29 17:35:58 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 1 month ago (2015-10-29 18:25:14 UTC) #9
commit-bot: I haz the power
5 years, 1 month ago (2015-10-29 18:26:54 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/c9f5539fb08bf8d5979b2de283f27b936cdc33bb
Cr-Commit-Position: refs/heads/master@{#356894}

Powered by Google App Engine
This is Rietveld 408576698