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

Issue 13767002: Use ExtractDrivePath(path()) instead of virtual_path() for getting Drive path. (Closed)

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

Description

Use ExtractDrivePath(path()) instead of virtual_path() for getting Drive path. FileSystemURL::virtual_path is a superficial path specified by the user of FileSystem API. It does not necessarily denote the 'virtual path' of Drive files like drive/foo.txt, when the Drive filesystem is mounted onto of another filesystem (e.g., onto an isolated filesystem). Basically, virtual_path() should never be directly used inside the Drive filesystem. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192962

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add more comprehensive tests. #

Total comments: 6

Patch Set 3 : Use GetDriveMountPointPath() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -14 lines) Patch
M chrome/browser/chromeos/drive/drive_file_system_proxy.cc View 1 chunk +1 line, -11 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_file_system_util.h View 1 2 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/chromeos/drive/drive_file_system_util.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc View 1 2 2 chunks +75 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/drive/drive_task_executor.cc View 1 chunk +3 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
kinaba
ptal
7 years, 8 months ago (2013-04-08 03:43:04 UTC) #1
hashimoto
lgtm https://codereview.chromium.org/13767002/diff/1/chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc File chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc (right): https://codereview.chromium.org/13767002/diff/1/chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc#newcode93 chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc:93: EXPECT_EQ(base::FilePath(), How about testing a case where |virtual_path| ...
7 years, 8 months ago (2013-04-08 03:51:00 UTC) #2
kinaba
https://codereview.chromium.org/13767002/diff/1/chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc File chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc (right): https://codereview.chromium.org/13767002/diff/1/chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc#newcode93 chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc:93: EXPECT_EQ(base::FilePath(), On 2013/04/08 03:51:00, hashimoto wrote: > How about ...
7 years, 8 months ago (2013-04-08 05:47:50 UTC) #3
hashimoto
https://codereview.chromium.org/13767002/diff/7001/chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc File chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc (right): https://codereview.chromium.org/13767002/diff/7001/chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc#newcode97 chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc:97: base::FilePath::FromUTF8Unsafe("/tmp"), // partition_path Using "/tmp" seems not multi platform ...
7 years, 8 months ago (2013-04-08 06:03:49 UTC) #4
kinaba
https://codereview.chromium.org/13767002/diff/7001/chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc File chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc (right): https://codereview.chromium.org/13767002/diff/7001/chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc#newcode97 chrome/browser/chromeos/drive/drive_file_system_util_unittest.cc:97: base::FilePath::FromUTF8Unsafe("/tmp"), // partition_path On 2013/04/08 06:03:49, hashimoto wrote: > ...
7 years, 8 months ago (2013-04-08 06:43:40 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/13767002/11004
7 years, 8 months ago (2013-04-08 23:01:34 UTC) #6
commit-bot: I haz the power
7 years, 8 months ago (2013-04-09 00:28:58 UTC) #7
Message was sent while issue was closed.
Change committed as 192962

Powered by Google App Engine
This is Rietveld 408576698