| Index: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/content/TabContentManager.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/content/TabContentManager.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/content/TabContentManager.java
|
| index 587bd5d96161321d40e265056cb12f0395715a9d..3c79038b922ac923633f0af66e44695a37729e53 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/content/TabContentManager.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/content/TabContentManager.java
|
| @@ -229,8 +229,8 @@ public class TabContentManager {
|
| mThumbnailScale);
|
| nativePageBitmap.recycle();
|
| } else {
|
| - nativeCacheTab(mNativeTabContentManager, tab, tab.getContentViewCore(),
|
| - mThumbnailScale);
|
| + if (tab.getWebContents() == null) return;
|
| + nativeCacheTab(mNativeTabContentManager, tab, mThumbnailScale);
|
| }
|
| }
|
| }
|
| @@ -318,8 +318,8 @@ public class TabContentManager {
|
| private native long nativeInit(int defaultCacheSize, int approximationCacheSize,
|
| int compressionQueueMaxSize, int writeQueueMaxSize, boolean useApproximationThumbnail);
|
| private native boolean nativeHasFullCachedThumbnail(long nativeTabContentManager, int tabId);
|
| - private native void nativeCacheTab(long nativeTabContentManager, Object tab,
|
| - Object contentViewCore, float thumbnailScale);
|
| + private native void nativeCacheTab(
|
| + long nativeTabContentManager, Object tab, float thumbnailScale);
|
| private native void nativeCacheTabWithBitmap(long nativeTabContentManager, Object tab,
|
| Object bitmap, float thumbnailScale);
|
| private native void nativeInvalidateIfChanged(long nativeTabContentManager, int tabId,
|
|
|