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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenActivityTab.java

Issue 1371553002: Remove mActivity from Tab and look at windowAndroid for tab (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenActivityTab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenActivityTab.java b/chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenActivityTab.java
index 601189224089947fe9ae9d2b71b5e4d408b711a4..f8a7ee2d66ae1ef2eb332e46481af7b421175207 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenActivityTab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/webapps/FullScreenActivityTab.java
@@ -315,9 +315,9 @@ public class FullScreenActivityTab extends ChromeTab {
extends TabChromeWebContentsDelegateAndroid {
@Override
public void activateContents() {
- if (!(mActivity instanceof WebappActivity)) return;
+ if (!(getActivity() instanceof WebappActivity)) return;
- WebappInfo webappInfo = ((WebappActivity) mActivity).getWebappInfo();
+ WebappInfo webappInfo = ((WebappActivity) getActivity()).getWebappInfo();
String url = webappInfo.uri().toString();
// Create an Intent that will be fired toward the WebappLauncherActivity, which in turn
@@ -326,10 +326,11 @@ public class FullScreenActivityTab extends ChromeTab {
// it the hard way.
Intent intent = new Intent();
intent.setAction(WebappLauncherActivity.ACTION_START_WEBAPP);
- intent.setPackage(mActivity.getPackageName());
+ intent.setPackage(getApplicationContext().getPackageName());
webappInfo.setWebappIntentExtras(intent);
- intent.putExtra(ShortcutHelper.EXTRA_MAC, ShortcutHelper.getEncodedMac(mActivity, url));
+ intent.putExtra(ShortcutHelper.EXTRA_MAC,
+ ShortcutHelper.getEncodedMac(getActivity(), url));
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
getApplicationContext().startActivity(intent);
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698