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

Issue 22335004: Add drive::FileSystem::GetFileByPathForSaving(). (Closed)

Created:
7 years, 4 months ago by kinaba
Modified:
7 years, 4 months ago
Reviewers:
hashimoto
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, oshima+watch_chromium.org, tzik+watch_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Add drive::FileSystem::GetFileByPathForSaving(). This is a part of the effort to enable Drive in the Save-As dialog of Chrome OS for every call site. For that, we need to care about existing callers that just simply write to local file paths returned by the dialog. By calling the newly added method, Drive file system will return a local cache whose modification is monitored for syncing. BUG=140425 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216377

Patch Set 1 #

Total comments: 12

Patch Set 2 : Review fix (#3). #

Patch Set 3 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+450 lines, -7 lines) Patch
M chrome/browser/chromeos/drive/dummy_file_system.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/fake_file_system.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/fake_file_system.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system.cc View 1 3 chunks +17 lines, -1 line 0 comments Download
A chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.h View 1 1 chunk +92 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.cc View 1 chunk +146 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation_unittest.cc View 1 1 chunk +158 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system/operation_test_base.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/file_system_interface.h View 1 2 1 chunk +13 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/drive/file_write_watcher.h View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
kinaba
7 years, 4 months ago (2013-08-07 09:40:19 UTC) #1
kinaba
It will be used like: https://codereview.chromium.org/22523003/.
7 years, 4 months ago (2013-08-07 10:04:15 UTC) #2
hashimoto
https://codereview.chromium.org/22335004/diff/1/chrome/browser/chromeos/drive/file_system.cc File chrome/browser/chromeos/drive/file_system.cc (right): https://codereview.chromium.org/22335004/diff/1/chrome/browser/chromeos/drive/file_system.cc#newcode227 chrome/browser/chromeos/drive/file_system.cc:227: file_write_watcher_.reset(new internal::FileWriteWatcher(observer)); What is this watcher serving for? https://codereview.chromium.org/22335004/diff/1/chrome/browser/chromeos/drive/file_system/get_file_for_saving_operation.h ...
7 years, 4 months ago (2013-08-07 10:31:54 UTC) #3
kinaba
https://codereview.chromium.org/22335004/diff/1/chrome/browser/chromeos/drive/file_system.cc File chrome/browser/chromeos/drive/file_system.cc (right): https://codereview.chromium.org/22335004/diff/1/chrome/browser/chromeos/drive/file_system.cc#newcode227 chrome/browser/chromeos/drive/file_system.cc:227: file_write_watcher_.reset(new internal::FileWriteWatcher(observer)); On 2013/08/07 10:31:54, hashimoto wrote: > What ...
7 years, 4 months ago (2013-08-07 11:28:38 UTC) #4
hashimoto
lgtm
7 years, 4 months ago (2013-08-08 06:36:52 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinaba@chromium.org/22335004/24001
7 years, 4 months ago (2013-08-08 10:35:30 UTC) #6
commit-bot: I haz the power
7 years, 4 months ago (2013-08-08 11:20:01 UTC) #7
Message was sent while issue was closed.
Change committed as 216377

Powered by Google App Engine
This is Rietveld 408576698