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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentSettings.java

Issue 11412273: [android_webview] Fix crash in ContentViewCore/ContentSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix style Created 8 years 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: content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java b/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
index 3ccf1f1a48eb6872c6b372967cf0870402ba49d7..2e70e558f5b5a056d5a624cd67016952b4c2bfc5 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentSettings.java
@@ -111,10 +111,14 @@ public class ContentSettings {
}
break;
case UPDATE_UA:
- mContentViewCore.setAllUserAgentOverridesInHistory();
+ if (mContentViewCore.isAlive()) {
bulach 2012/12/03 20:05:12 how about move this check to ContentViewCore itsel
+ mContentViewCore.setAllUserAgentOverridesInHistory();
+ }
break;
case UPDATE_MULTI_TOUCH:
- mContentViewCore.updateMultiTouchZoomSupport();
+ if (mContentViewCore.isAlive()) {
+ mContentViewCore.updateMultiTouchZoomSupport();
+ }
break;
}
}
« 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