Commit 1fe7a51a authored by Ella Ge's avatar Ella Ge Committed by Commit Bot

Fix set splash icon in webApk update request

The created SkBitmap was not set to |splash_icon| correctly and it will
always be null.
Add a "splash_icon = " to fix that.

Bug: None
Change-Id: Id229c1658612b092cbaf5452dc9a7a250207f567
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2163075
Commit-Queue: Ella Ge <eirage@chromium.org>
Reviewed-by: default avatarPeter Kotwicz <pkotwicz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#762079}
parent 91584c61
...@@ -159,6 +159,7 @@ static void JNI_WebApkUpdateManager_StoreWebApkUpdateRequestToFile( ...@@ -159,6 +159,7 @@ static void JNI_WebApkUpdateManager_StoreWebApkUpdateRequestToFile(
SkBitmap splash_icon; SkBitmap splash_icon;
if (!java_splash_icon_bitmap.is_null()) { if (!java_splash_icon_bitmap.is_null()) {
gfx::JavaBitmap java_splash_icon_bitmap_lock(java_splash_icon_bitmap); gfx::JavaBitmap java_splash_icon_bitmap_lock(java_splash_icon_bitmap);
splash_icon =
gfx::CreateSkBitmapFromJavaBitmap(java_splash_icon_bitmap_lock); gfx::CreateSkBitmapFromJavaBitmap(java_splash_icon_bitmap_lock);
splash_icon.setImmutable(); splash_icon.setImmutable();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment