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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelJniBridge.java

Issue 831523005: Remove most native WebContents references from Java (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Kept same error checking behavior for aw_contents.cc Created 5 years, 11 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/tabmodel/TabModelJniBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelJniBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelJniBridge.java
index 7581fefdccffa60caf291b031e202e2c5938f08a..be1bc6e1f7e3f69b9b5514afc7ab8d6ac935485c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelJniBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tabmodel/TabModelJniBridge.java
@@ -9,6 +9,7 @@ import android.os.SystemClock;
import org.chromium.base.CalledByNative;
import org.chromium.chrome.browser.Tab;
import org.chromium.chrome.browser.profiles.Profile;
+import org.chromium.content_public.browser.WebContents;
/**
* Bridges between the C++ and Java {@link TabModel} interfaces.
@@ -98,12 +99,12 @@ public abstract class TabModelJniBridge implements TabModel {
/**
* Creates a Tab with the given WebContents.
* @param incognito Whether or not the tab is incognito.
- * @param nativeWebContents Pointer to the native WebContents.
+ * @param webContents A {@link WebContents} object.
* @param parentId ID of the parent.
*/
@CalledByNative
- protected abstract Tab createTabWithNativeContents(
- boolean incognito, long nativeWebContents, int parentId);
+ protected abstract Tab createTabWithWebContents(
+ boolean incognito, WebContents webContents, int parentId);
/**
* Creates a Tab with the given WebContents for DevTools.

Powered by Google App Engine
This is Rietveld 408576698