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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/BitmapHttpRequest.java

Issue 1989963003: Set User-Agent and Accept-Language request headers for PWS requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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
Index: chrome/android/java/src/org/chromium/chrome/browser/physicalweb/BitmapHttpRequest.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/BitmapHttpRequest.java b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/BitmapHttpRequest.java
index 6f13c8e306b4c57864c9175637f14929e2ecfc2e..fdaccc7ad3ebea78062f8072353cdd7d78610a41 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/BitmapHttpRequest.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/physicalweb/BitmapHttpRequest.java
@@ -20,14 +20,17 @@ class BitmapHttpRequest extends HttpRequest<Bitmap> {
/**
* Construct a bitmap HTTP request.
* @param url The url to make this HTTP request to.
+ * @param userAgent The string to set as the User-Agent request header.
+ * @param acceptLanguage The string to set as the Accept-Language request header.
* @param callback The callback run when the HTTP response is received.
* The callback can be called with a null bitmap if the image
* couldn't be decoded.
* @throws MalformedURLException on invalid url
*/
- public BitmapHttpRequest(String url, RequestCallback callback)
+ public BitmapHttpRequest(String url, String userAgent, String acceptLanguage,
+ RequestCallback callback)
throws MalformedURLException {
- super(url, callback);
+ super(url, userAgent, acceptLanguage, callback);
}
/**
« no previous file with comments | « chrome/android/BUILD.gn ('k') | chrome/android/java/src/org/chromium/chrome/browser/physicalweb/HttpRequest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698