summaryrefslogtreecommitdiffstats
path: root/android_webview
diff options
context:
space:
mode:
authormkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-21 13:39:54 +0000
committermkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-21 13:39:54 +0000
commit1eaf2ac412f01daefd178ce9a2fbf3be555b6797 (patch)
treefbaed02d0baf74e39666b02cb5626e98a2f9260b /android_webview
parentbbb394c7231d26bfa35dab1e83f32ce9a7c7fe50 (diff)
downloadchromium_src-1eaf2ac412f01daefd178ce9a2fbf3be555b6797.zip
chromium_src-1eaf2ac412f01daefd178ce9a2fbf3be555b6797.tar.gz
chromium_src-1eaf2ac412f01daefd178ce9a2fbf3be555b6797.tar.bz2
[android_webview] Fix crash in testCreateDestroy.
The onSizeChanged callback was arriving after the AwContents was destroyed. Ignoring the setFixedLayoutSize call is fine since the AwContents is going away anyway. BUG=308497 R=mnaganov@chromium.org Review URL: https://codereview.chromium.org/28923005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229798 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview')
-rw-r--r--android_webview/java/src/org/chromium/android_webview/AwContents.java1
1 files changed, 1 insertions, 0 deletions
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 26c026d..5e1ab63 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -364,6 +364,7 @@ public class AwContents {
@Override
public void setFixedLayoutSize(int widthDip, int heightDip) {
+ if (mNativeAwContents == 0) return;
nativeSetFixedLayoutSize(mNativeAwContents, widthDip, heightDip);
}
}