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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/document/DocumentTabDelegateFactory.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/document/DocumentTabDelegateFactory.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/document/DocumentTabDelegateFactory.java b/chrome/android/java/src/org/chromium/chrome/browser/document/DocumentTabDelegateFactory.java
index 7a9907b41b98c05919e7e46c8f25ed0c4e31af68..6d7f3df72f8ce5a8a55035fa443460074bdadf60 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/document/DocumentTabDelegateFactory.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/document/DocumentTabDelegateFactory.java
@@ -4,7 +4,6 @@
package org.chromium.chrome.browser.document;
-import org.chromium.chrome.browser.ChromeActivity;
import org.chromium.chrome.browser.ChromeApplication;
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.browser.tab.TabDelegateFactory;
@@ -23,8 +22,8 @@ public class DocumentTabDelegateFactory extends TabDelegateFactory {
extends TabWebContentsDelegateAndroid {
private boolean mIsIncognito;
- public DocumentTabWebContentsDelegateAndroid(Tab tab, ChromeActivity activity) {
- super(tab, activity);
+ public DocumentTabWebContentsDelegateAndroid(Tab tab) {
+ super(tab);
mIsIncognito = tab.isIncognito();
}
@@ -39,8 +38,7 @@ public class DocumentTabDelegateFactory extends TabDelegateFactory {
}
@Override
- public TabWebContentsDelegateAndroid createWebContentsDelegate(
- Tab tab, ChromeActivity activity) {
- return new DocumentTabWebContentsDelegateAndroid(tab, activity);
+ public TabWebContentsDelegateAndroid createWebContentsDelegate(Tab tab) {
+ return new DocumentTabWebContentsDelegateAndroid(tab);
}
}

Powered by Google App Engine
This is Rietveld 408576698