Index: chrome/android/java/src/org/chromium/chrome/browser/Tab.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java |
index a000dbdf49145ffc806199b4169a9934c83b5059..a087e845227cfe7a91f903e355c621beb5e8e15a 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java |
@@ -1584,9 +1584,7 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener, |
if (mInfoBarContainer == null) { |
// The InfoBarContainer needs to be created after the ContentView has been natively |
// initialized. |
- WebContents webContents = mContentViewCore.getWebContents(); |
- mInfoBarContainer = new InfoBarContainer( |
- mContext, getId(), mContentViewParent, webContents, this); |
+ mInfoBarContainer = new InfoBarContainer(mContext, getId(), mContentViewParent, this); |
} else { |
mInfoBarContainer.onParentViewChanged(getId(), mContentViewParent); |
} |
@@ -2137,8 +2135,9 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener, |
} |
/** This is currently called when committing a pre-rendered page. */ |
+ @VisibleForTesting |
@CalledByNative |
- private void swapWebContents( |
+ public void swapWebContents( |
WebContents webContents, boolean didStartLoad, boolean didFinishLoad) { |
ContentViewCore cvc = new ContentViewCore(mContext); |
ContentView cv = ContentView.newInstance(mContext, cvc); |
@@ -2199,11 +2198,6 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener, |
mNativeTabAndroid = nativePtr; |
} |
- @CalledByNative |
- private long getNativeInfoBarContainer() { |
- return getInfoBarContainer().getNative(); |
- } |
- |
/** |
* @return Whether the TabState representing this Tab has been updated. |
*/ |