 Chromium Code Reviews
 Chromium Code Reviews Issue 
            1109253003:
    Re-land: base: Replace PurgeAndTruncate with Shrink function.  (Closed)
    
  
    Issue 
            1109253003:
    Re-land: base: Replace PurgeAndTruncate with Shrink function.  (Closed) 
  | DescriptionRe-land: base: Replace PurgeAndTruncate with Shrink function.
This cleans up the API a bit and allows the code to be unit tested.
This also prevents ftruncate from being used on Android where
shared memory is backed by Ashmem. Ashmem doesn't support ftruncate.
BUG=466509
TEST=base_unittests --gtest_filter=DiscardableSharedMemoryTest.Shrink
Review URL: https://codereview.chromium.org/1018743003
Cr-Commit-Position: refs/heads/master@{#323941}
(cherry picked from commit 59d32f501694975c4011ea85a67060a41140d0f4)
Committed: https://chromium.googlesource.com/chromium/src/+/26a3fd37afe22223aebcb61b65b189ad90121bc3
   Patch Set 1 #
 Messages
    Total messages: 1 (0 generated)
     | ||||||||||||||||||||||||||||||||||||||||||||||