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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 1419843002: Hold a reference to any kind of context in WindowAndroid. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: android_webview/java/src/org/chromium/android_webview/AwContents.java
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java
index 1a0acbfb9d883386d19a1026b0a087017e734252..758157e72d55db2e3c4932df270c668417e2aeb1 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -906,8 +906,7 @@ public class AwContents implements SmartClipProvider,
Activity activity = ContentViewCore.activityFromContext(context);
if (activity == null) {
if (sCachedWindowAndroid == null) {
- sCachedWindowAndroid = new WindowAndroidWrapper(
- new WindowAndroid(context.getApplicationContext()));
+ sCachedWindowAndroid = new WindowAndroidWrapper(new WindowAndroid(context));
}
return sCachedWindowAndroid;
}

Powered by Google App Engine
This is Rietveld 408576698