Chromium Code Reviews| Index: chrome/browser/chromeos/extensions/file_manager/private_api_util.cc |
| diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc b/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc |
| index be35838e8b98fd0d2299d244be541b8838f18eb7..c1e183954bd105d9d4687b66be4c139bffd904a4 100644 |
| --- a/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc |
| +++ b/chrome/browser/chromeos/extensions/file_manager/private_api_util.cc |
| @@ -70,13 +70,19 @@ void GetSelectedFileInfoInternal(Profile* profile, |
| scoped_ptr<drive::ResourceEntry>()); |
| return; |
| } |
| - // TODO(kinaba): crbug.com/140425 support FOR_SAVING |
| - DCHECK(params->local_path_option == NEED_LOCAL_PATH_FOR_OPENING); |
| - integration_service->file_system()->GetFileByPath( |
| - drive::util::ExtractDrivePath(file_path), |
| - base::Bind(&ContinueGetSelectedFileInfo, |
| - profile, |
| - base::Passed(¶ms))); |
| + if (params->local_path_option == NEED_LOCAL_PATH_FOR_OPENING) { |
| + integration_service->file_system()->GetFileByPath( |
| + drive::util::ExtractDrivePath(file_path), |
| + base::Bind(&ContinueGetSelectedFileInfo, |
| + profile, |
| + base::Passed(¶ms))); |
| + } else { |
|
hashimoto
2013/08/08 07:07:28
nit: Can't we have DCHECK_EQ(NEED_LOCAL_PATH_FOR_S
kinaba
2013/08/08 08:07:13
Done.
|
| + integration_service->file_system()->GetFileByPathForSaving( |
| + drive::util::ExtractDrivePath(file_path), |
| + base::Bind(&ContinueGetSelectedFileInfo, |
| + profile, |
| + base::Passed(¶ms))); |
| + } |
| return; |
| } |
| } |