Pass JavaRef to Java methods in chrome.

Update code in chrome to use JavaRef when calling Java methods via JNI,
instead of passing bare jobject. Various function parameter types are
converted from jobject to JavaRef to enable calls to obj() higher up the
call chain to be removed.

BUG=506850
[email protected]

Change-Id: Idfe12e9a14a28178935bf42a71153808ced7c6a9
Reviewed-on: https://chromium-review.googlesource.com/583591
Commit-Queue: Richard Coles <[email protected]>
Reviewed-by: Ted Choc <[email protected]>
Reviewed-by: Filip Gorski <[email protected]>
Cr-Commit-Position: refs/heads/master@{#489301}
diff --git a/chrome/browser/android/rlz/rlz_ping_handler.h b/chrome/browser/android/rlz/rlz_ping_handler.h
index 6422230..c7aa1b3 100644
--- a/chrome/browser/android/rlz/rlz_ping_handler.h
+++ b/chrome/browser/android/rlz/rlz_ping_handler.h
@@ -17,7 +17,7 @@
 // JNI bridge for   RlzPingHandler.java
 class RlzPingHandler : public net::URLFetcherDelegate {
  public:
-  explicit RlzPingHandler(jobject jprofile);
+  explicit RlzPingHandler(const base::android::JavaRef<jobject>& jprofile);
   ~RlzPingHandler() override;
 
   // Makes a GET request to the designated web end point with the given