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

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

Issue 2392293002: Disable thread checking for LGE email app (Closed)
Patch Set: Created 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dc6d6bea05832d53f40b0c279467f9aca1d268dc..ed113803436e12e58d199d54d59716daac9c41e6 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
@@ -522,8 +522,13 @@ public class WebViewChromiumFactoryProvider implements WebViewFactoryProvider {
return new WebViewChromium(this, webView, privateAccess, mShouldDisableThreadChecking);
}
- // Check this as a workaround for https://crbug.com/622151.
+ // Check this as a workaround for crbug.com/622151, crbug.com/651706
private boolean shouldDisableThreadChecking(Context context) {
+ final String lgeMailPackageId = "com.lge.email";
+ if (lgeMailPackageId.equals(context.getPackageName())) {
+ // TODO(changwan): need to do version check once LGE notifies us.
aelias_OOO_until_Jul13 2016/10/05 23:01:53 Can you fill in the code with placeholder version
Changwan Ryu 2016/10/06 05:31:41 Done.
+ return true;
+ }
if (Build.VERSION.SDK_INT > Build.VERSION_CODES.M) return false;
final String htcMailPackageId = "com.htc.android.mail";
if (!htcMailPackageId.equals(context.getPackageName())) return false;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698