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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java

Issue 1616073006: Remove cached Activity from TabWebContentsDelegate and ContextMenuPopulator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed findbugs Created 4 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/tab/Tab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
index 76668f97c56273782b195cb723baec8ef7ffd2a4..f48cd887e4e64a3a4a2dbf6bec58a6ec74c0e18c 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java
@@ -1568,7 +1568,7 @@ public final class Tab implements ViewGroup.OnHierarchyChangeListener,
new FrameLayout.LayoutParams(
LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
- mWebContentsDelegate = mDelegateFactory.createWebContentsDelegate(this, getActivity());
+ mWebContentsDelegate = mDelegateFactory.createWebContentsDelegate(this);
mWebContentsObserver =
new TabWebContentsObserver(mContentViewCore.getWebContents(), this);
@@ -1579,8 +1579,8 @@ public final class Tab implements ViewGroup.OnHierarchyChangeListener,
assert mNativeTabAndroid != 0;
nativeInitWebContents(
mNativeTabAndroid, mIncognito, mContentViewCore, mWebContentsDelegate,
- new TabContextMenuPopulator(mDelegateFactory.createContextMenuPopulator(
- this, getActivity()), this));
+ new TabContextMenuPopulator(mDelegateFactory.createContextMenuPopulator(this),
+ this));
// In the case where restoring a Tab or showing a prerendered one we already have a
// valid infobar container, no need to recreate one.

Powered by Google App Engine
This is Rietveld 408576698