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

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

Issue 2259533003: Use bounds instead of size for prerender requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments nit Created 4 years, 4 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 be780a352ed12ea85cb4f489b0486732a67ebcac..2e772684bbf09319b400aae86ec52671c459e2dc 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
@@ -11,6 +11,7 @@ import android.content.Context;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.Point;
+import android.graphics.Rect;
import android.net.ConnectivityManager;
import android.net.Uri;
import android.os.AsyncTask;
@@ -751,7 +752,8 @@ public class CustomTabsConnection {
}
if (referrer == null) referrer = "";
WebContents webContents = mExternalPrerenderHandler.addPrerender(
- Profile.getLastUsedProfile(), url, referrer, contentSize.x, contentSize.y,
+ Profile.getLastUsedProfile(), url, referrer,
+ new Rect(0, 0, contentSize.x, contentSize.y),
shouldPrerenderOnCellularForSession(session));
if (webContents == null) return false;
if (throttle) mClientManager.registerPrerenderRequest(uid, url);
« 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