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

Issue 14075016: Change some snapshot- or temporary-file related changes to use ScopedFile (Closed)

Created:
7 years, 8 months ago by kinuko
Modified:
7 years, 8 months ago
CC:
chromium-reviews, tzik+watch_chromium.org, kinuko+watch, darin-cc_chromium.org, feature-media-reviews_chromium.org, michaeln, tommycli
Visibility:
Public.

Description

Change some snapshot- or temporary-file related changes to use ScopedFile - Remove FileSnapshotPolicy, and change FileSystemFileUtil::CreateSnapshotFile() to return webkit_blob::ScopedFile (if implementors want the backend to control the snapshot file's lifetime). This allows implementors to set arbitrary callbacks and also reduces the possibility of snapshot file leakage. - Change DriveFileSyncService's temporary file handling to use webkit_blob::ScopedFile to simplify the codebase & reduce the possibility of temporary file leakage. BUG=162598 TEST=existing tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196640

Patch Set 1 : #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : addressed comments #

Patch Set 5 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+89 lines, -113 lines) Patch
M chrome/browser/media_galleries/fileapi/device_media_async_file_util.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/device_media_async_file_util.cc View 1 2 3 5 chunks +13 lines, -5 lines 0 comments Download
M chrome/browser/media_galleries/win/mtp_device_delegate_impl_win.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/drive_file_sync_service.cc View 1 2 3 7 chunks +18 lines, -26 lines 0 comments Download
M webkit/fileapi/async_file_util.h View 1 2 3 4 3 chunks +17 lines, -5 lines 0 comments Download
M webkit/fileapi/async_file_util_adapter.cc View 4 chunks +10 lines, -9 lines 0 comments Download
D webkit/fileapi/file_snapshot_policy.h View 1 chunk +0 lines, -26 lines 0 comments Download
M webkit/fileapi/file_system_file_util.h View 2 chunks +4 lines, -4 lines 0 comments Download
M webkit/fileapi/local_file_system_operation.h View 2 chunks +3 lines, -3 lines 0 comments Download
M webkit/fileapi/local_file_system_operation.cc View 2 chunks +2 lines, -8 lines 0 comments Download
M webkit/fileapi/local_file_util.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/fileapi/local_file_util.cc View 1 chunk +7 lines, -10 lines 0 comments Download
M webkit/fileapi/obfuscated_file_util.h View 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/fileapi/obfuscated_file_util.cc View 1 chunk +7 lines, -10 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
michaeln
thnx for the preview of callsites
7 years, 8 months ago (2013-04-22 21:09:34 UTC) #1
kinuko
This one's ready for review too. (Patch based on https://codereview.chromium.org/14261015/) Can you take a look?
7 years, 8 months ago (2013-04-24 04:42:08 UTC) #2
kinuko
+gbillock (and cc-ing tommycli) as this patch changes AsyncFileUtil interface for CreateSnapshotFile. Greg/Tommy, can you ...
7 years, 8 months ago (2013-04-24 14:16:28 UTC) #3
tzik
lgtm https://codereview.chromium.org/14075016/diff/18001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/14075016/diff/18001/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode68 chrome/browser/sync_file_system/drive_file_sync_service.cc:68: BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); Since this function should be called on ...
7 years, 8 months ago (2013-04-25 05:06:07 UTC) #4
kinuko
https://codereview.chromium.org/14075016/diff/18001/chrome/browser/sync_file_system/drive_file_sync_service.cc File chrome/browser/sync_file_system/drive_file_sync_service.cc (right): https://codereview.chromium.org/14075016/diff/18001/chrome/browser/sync_file_system/drive_file_sync_service.cc#newcode68 chrome/browser/sync_file_system/drive_file_sync_service.cc:68: BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE)); On 2013/04/25 05:06:07, tzik wrote: > Since this ...
7 years, 8 months ago (2013-04-25 06:02:08 UTC) #5
kinuko
+vandebo Steve, mind doing an owner's review for the changes under chrome/browser/media_galleries/fileapi/ ? (Greg, I ...
7 years, 8 months ago (2013-04-25 06:06:29 UTC) #6
vandebo (ex-Chrome)
chrome/browser/media_galleries/fileapi/ LGTM On 2013/04/25 06:06:29, kinuko wrote: > +vandebo > > Steve, mind doing an ...
7 years, 8 months ago (2013-04-25 17:37:08 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/14075016/44001
7 years, 8 months ago (2013-04-26 04:56:16 UTC) #8
kinuko
7 years, 8 months ago (2013-04-26 07:13:33 UTC) #9
Message was sent while issue was closed.
Committed patchset #5 manually as r196640 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698