Chromium Code Reviews
        
  DescriptionGallery.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. #
 Messages
    Total messages: 10 (2 generated)
     
  
  
       | 
    ||||||||||||||||||||||||||||