Index: chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenInfoBarDelegate.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenInfoBarDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenInfoBarDelegate.java |
index b4683ab6f87ba126d95e890f978dd776007a21ec..2f63e766ebd960abb84f3ae8db2eb0e282dfe35f 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenInfoBarDelegate.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/fullscreen/FullscreenInfoBarDelegate.java |
@@ -14,7 +14,7 @@ import org.chromium.chrome.browser.tab.Tab; |
*/ |
public class FullscreenInfoBarDelegate { |
private final FullscreenHtmlApiHandler mHandler; |
- private final Tab mTab; |
+ private final boolean mIsForIncognitoTab; |
private long mNativeFullscreenInfoBarDelegate = 0; |
/** |
@@ -31,7 +31,7 @@ public class FullscreenInfoBarDelegate { |
FullscreenHtmlApiHandler handler, Tab tab) { |
assert tab != null; |
mHandler = handler; |
- mTab = tab; |
+ mIsForIncognitoTab = tab.isIncognito(); |
mNativeFullscreenInfoBarDelegate = nativeLaunchFullscreenInfoBar(tab); |
} |
@@ -40,7 +40,7 @@ public class FullscreenInfoBarDelegate { |
*/ |
protected void closeFullscreenInfoBar() { |
if (mNativeFullscreenInfoBarDelegate != 0) { |
- nativeCloseFullscreenInfoBar(mNativeFullscreenInfoBarDelegate, mTab); |
+ nativeCloseFullscreenInfoBar(mNativeFullscreenInfoBarDelegate); |
} |
} |
@@ -51,7 +51,7 @@ public class FullscreenInfoBarDelegate { |
*/ |
@CalledByNative |
private void onFullscreenAllowed(String origin) { |
- FullscreenInfo fullscreenInfo = new FullscreenInfo(origin, null, mTab.isIncognito()); |
+ FullscreenInfo fullscreenInfo = new FullscreenInfo(origin, null, mIsForIncognitoTab); |
fullscreenInfo.setContentSetting(ContentSetting.ALLOW); |
} |
@@ -72,5 +72,5 @@ public class FullscreenInfoBarDelegate { |
} |
private native long nativeLaunchFullscreenInfoBar(Tab tab); |
- private native void nativeCloseFullscreenInfoBar(long nativeFullscreenInfoBarDelegate, Tab tab); |
+ private native void nativeCloseFullscreenInfoBar(long nativeFullscreenInfoBarDelegate); |
} |