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

Issue 1232123009: customtabs: Pre-create a renderer in mayLaunchUrl(). (Closed)

Created:
5 years, 5 months ago by Benoit L
Modified:
5 years, 4 months ago
CC:
avayvod+watch_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, davidben, David Trainor- moved to gerrit, ianwen+watch_chromium.org, jam, nasko+codewatch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

customtabs: Pre-create a renderer in mayLaunchUrl(). When the client application indicates that it is likely to navigate to a URL, we either pre-render it, or starting with this CL, pre-create a renderer. Renderer creation is relatively slow on Android, and even when a bound service is already there, additional initialization is necessary to get a usable renderer. This commit makes the "spare" renderer navigate to about:blank, to force a complete initialization of it. Testing on a Nexus 5 with Android 5.1.1 has shown ~200ms improvement with this change for the time to navigation commit. Most of the patch is plumbing to make sure that the "about:blank" navigation doesn't get registered, so that a back navigation in a Custom Tab doesn't go to about:blank. BUG=511280 Committed: https://crrev.com/e8adeb87d8f923c541b93148a8c2149efd07811e Cr-Commit-Position: refs/heads/master@{#344480}

Patch Set 1 #

Patch Set 2 : Add a test (check that about:blank is ignored in the history) #

Patch Set 3 : Rebase. #

Total comments: 10

Patch Set 4 : Address comments + rebase. #

Total comments: 2

Patch Set 5 : ... #

Patch Set 6 : Rebase. #

Messages

Total messages: 25 (7 generated)
Benoit L
Hello fellow Chromium-ers, pasko, yusufo: customtabs/ (and generally FYI) davidben: content/ yfriedman: */android/* A bit ...
5 years, 4 months ago (2015-08-12 13:49:44 UTC) #2
davidben
Charlie's actually probably a better person than me to review this, even though the actual ...
5 years, 4 months ago (2015-08-12 15:14:57 UTC) #4
davidben
On 2015/08/12 15:14:57, David Benjamin wrote: > > For context, rationale and experimental results, see: ...
5 years, 4 months ago (2015-08-12 15:19:34 UTC) #5
Charlie Reis
I've been chatting with Nasko about this, and the idea sounds fine but the approach ...
5 years, 4 months ago (2015-08-12 17:04:29 UTC) #7
Benoit L
Thank you for the input, a few questions below. First of all, I am not ...
5 years, 4 months ago (2015-08-13 15:58:31 UTC) #8
Benoit L
Sorry for the ping, but we would like this optimization to be in for M46, ...
5 years, 4 months ago (2015-08-17 16:45:38 UTC) #10
Charlie Reis
On 2015/08/17 16:45:38, Benoit L wrote: > Sorry for the ping, but we would like ...
5 years, 4 months ago (2015-08-17 18:51:23 UTC) #11
Yaron
On 2015/08/17 18:51:23, Charlie Reis wrote: > On 2015/08/17 16:45:38, Benoit L wrote: > > ...
5 years, 4 months ago (2015-08-17 19:31:39 UTC) #12
Yusuf
https://codereview.chromium.org/1232123009/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java (right): https://codereview.chromium.org/1232123009/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java#newcode147 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java:147: if (webContents != null) { This will replace current ...
5 years, 4 months ago (2015-08-18 00:02:51 UTC) #13
Benoit L
Thanks for the review! Added the TODOs, and addressed yusufo's comments. https://codereview.chromium.org/1232123009/diff/40001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java (right): ...
5 years, 4 months ago (2015-08-18 12:04:24 UTC) #14
Benoit L
Hello sdefresne@chromium.org! Please review changes in chrome/browser/history/android/android_provider_backend_unittest.cc Thanks!
5 years, 4 months ago (2015-08-18 12:25:24 UTC) #16
sdefresne
lgtm
5 years, 4 months ago (2015-08-18 12:34:29 UTC) #17
Yusuf
https://codereview.chromium.org/1232123009/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java (right): https://codereview.chromium.org/1232123009/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java#newcode172 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java:172: if (webContents != null) mShouldReplaceCurrentEntry = true; :( now ...
5 years, 4 months ago (2015-08-19 17:16:13 UTC) #18
Benoit L
https://codereview.chromium.org/1232123009/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java File chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java (right): https://codereview.chromium.org/1232123009/diff/60001/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java#newcode172 chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTab.java:172: if (webContents != null) mShouldReplaceCurrentEntry = true; On 2015/08/19 ...
5 years, 4 months ago (2015-08-19 17:44:48 UTC) #19
Yusuf
lgtm
5 years, 4 months ago (2015-08-19 17:45:41 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1232123009/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1232123009/100001
5 years, 4 months ago (2015-08-20 10:00:27 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 4 months ago (2015-08-20 12:18:16 UTC) #24
commit-bot: I haz the power
5 years, 4 months ago (2015-08-20 12:18:48 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e8adeb87d8f923c541b93148a8c2149efd07811e
Cr-Commit-Position: refs/heads/master@{#344480}

Powered by Google App Engine
This is Rietveld 408576698