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

Unified Diff: android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java

Issue 2242173003: Ignore multiple assignments to global context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
diff --git a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
index e78808be92430272ef31be2051599c25764e14b8..94ed1b6e25276c50f4db4f16476ad7b6498c8b88 100644
--- a/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
+++ b/android_webview/glue/java/src/com/android/webview/chromium/WebViewChromiumFactoryProvider.java
@@ -192,8 +192,7 @@ public class WebViewChromiumFactoryProvider implements WebViewFactoryProvider {
// WebView needs to make sure to always use the wrapped application context.
ContextUtils.initApplicationContext(
- ResourcesContextWrapperFactory.get(
- mWebViewDelegate.getApplication().getApplicationContext()));
+ ResourcesContextWrapperFactory.get(mWebViewDelegate.getApplication()));
boliu 2016/08/15 21:16:38 while I don't necessarily think this is wrong, why
Peter Wen 2016/08/15 21:49:54 We want the application object to be cached if .ge
boliu 2016/08/15 22:21:32 That's not true.. If app intentionally wraps getAp
if (isBuildDebuggable()) {
// Suppress the StrictMode violation as this codepath is only hit on debuggable builds.

Powered by Google App Engine
This is Rietveld 408576698