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

Issue 988273002: Gallery.app : Truncates the file after a blob of new image is created. (Closed)

Created:
5 years, 9 months ago by yawano
Modified:
5 years, 9 months ago
Reviewers:
fukino
CC:
chromium-reviews, rginda+watch_chromium.org, mtomasz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Gallery.app : Truncates the file after a blob of new image is created. Previously Gallery.app truncates the file before a blob of new image is created. This means that when some error happens during the creation of new image, the file is overwritten with 0 bytes. To avoid it, this CL creates the blob before truncates the file. BUG=463837 TEST=out/Release/browser_tests --gtest_filter=GalleryJsTest.GalleryItemTest Committed: https://crrev.com/0a7bfb6288eecd3fca6191f5f374c680fb788e32 Cr-Commit-Position: refs/heads/master@{#319817}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fix error handling with Promise. #

Patch Set 3 : Add test cases. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+171 lines, -43 lines) Patch
M ui/file_manager/gallery/js/gallery_item.js View 1 1 chunk +47 lines, -29 lines 0 comments Download
M ui/file_manager/gallery/js/gallery_item_unittest.js View 1 2 4 chunks +124 lines, -14 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
yawano
PTAL. Thank you!
5 years, 9 months ago (2015-03-09 05:35:52 UTC) #2
fukino
Thanks! As this CL changes error handling and verification for the fix is not obvious, ...
5 years, 9 months ago (2015-03-09 07:12:35 UTC) #3
yawano
Thank you for the reivew! Fixed issues, and added unit test. PTAL. https://codereview.chromium.org/988273002/diff/1/ui/file_manager/gallery/js/gallery_item.js File ui/file_manager/gallery/js/gallery_item.js ...
5 years, 9 months ago (2015-03-09 08:40:32 UTC) #4
fukino
lgtm. Thanks!
5 years, 9 months ago (2015-03-10 01:45:13 UTC) #5
yawano
On 2015/03/10 01:45:13, fukino wrote: > lgtm. Thanks! Thank you!
5 years, 9 months ago (2015-03-10 01:49:42 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/988273002/40001
5 years, 9 months ago (2015-03-10 01:50:31 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 9 months ago (2015-03-10 01:54:06 UTC) #9
commit-bot: I haz the power
5 years, 9 months ago (2015-03-10 01:55:11 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/0a7bfb6288eecd3fca6191f5f374c680fb788e32
Cr-Commit-Position: refs/heads/master@{#319817}

Powered by Google App Engine
This is Rietveld 408576698