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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java

Issue 1710853002: android: Add a method to let Java know whether a prerender has finished loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Indentation. Created 4 years, 10 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java
index 0eed1965b1bb7ebe54c9dad6e23278adcca9351a..7cac67779ee8228c79b825dfe48e03522bf814fd 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java
@@ -77,7 +77,8 @@ public class CustomTabsConnection extends ICustomTabsService.Stub {
private static AtomicReference<CustomTabsConnection> sInstance =
new AtomicReference<CustomTabsConnection>();
- private static final class PrerenderedUrlParams {
+ @VisibleForTesting
+ static final class PrerenderedUrlParams {
public final IBinder mSession;
public final WebContents mWebContents;
public final String mUrl;
@@ -94,12 +95,13 @@ public class CustomTabsConnection extends ICustomTabsService.Stub {
}
}
+ @VisibleForTesting
+ PrerenderedUrlParams mPrerender;
protected final Application mApplication;
private final boolean mLogRequests;
private final AtomicBoolean mWarmupHasBeenCalled = new AtomicBoolean();
private final ClientManager mClientManager;
private ExternalPrerenderHandler mExternalPrerenderHandler;
- private PrerenderedUrlParams mPrerender;
private WebContents mSpareWebContents;
/**
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698