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

Issue 583583003: Files.app: Fix DCHECK in FakeFileSystem. (Closed)

Created:
6 years, 3 months ago by hirono
Modified:
6 years, 3 months ago
Reviewers:
kinaba
CC:
chromium-reviews, tfarina, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Files.app: Fix DCHECK in FakeFileSystem. Previous DCHECK uses IsUnderDriveMountPoint method which takes paths for external file system. But the paths used in FakeFileSystem are drive paths that are extracted from external file system paths. So it goes into infinity loop during traversing parent directory when a path pointing the out of my drive directory is given. The CL removes the check, and add util::GetDriveMyDriveRootPath().IsParent(file_path) to prevent the infinity loop. BUG=None TEST=None Committed: https://crrev.com/bb138d429978b5b0b2b266d91a23538b10673593 Cr-Commit-Position: refs/heads/master@{#296644}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed. #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -3 lines) Patch
M chrome/browser/chromeos/drive/fake_file_system.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
hirono
PTAL the CL? Thank you!
6 years, 3 months ago (2014-09-18 12:02:39 UTC) #2
kinaba
Good catch https://codereview.chromium.org/583583003/diff/1/chrome/browser/chromeos/drive/fake_file_system.cc File chrome/browser/chromeos/drive/fake_file_system.cc (right): https://codereview.chromium.org/583583003/diff/1/chrome/browser/chromeos/drive/fake_file_system.cc#newcode148 chrome/browser/chromeos/drive/fake_file_system.cc:148: DCHECK(file_path.BaseName() != file_path); The condition looks a ...
6 years, 3 months ago (2014-09-19 01:47:18 UTC) #3
hirono
https://codereview.chromium.org/583583003/diff/1/chrome/browser/chromeos/drive/fake_file_system.cc File chrome/browser/chromeos/drive/fake_file_system.cc (right): https://codereview.chromium.org/583583003/diff/1/chrome/browser/chromeos/drive/fake_file_system.cc#newcode148 chrome/browser/chromeos/drive/fake_file_system.cc:148: DCHECK(file_path.BaseName() != file_path); On 2014/09/19 01:47:18, kinaba wrote: > ...
6 years, 3 months ago (2014-09-22 04:53:28 UTC) #4
kinaba
lgtm https://codereview.chromium.org/583583003/diff/20001/chrome/browser/chromeos/drive/fake_file_system.cc File chrome/browser/chromeos/drive/fake_file_system.cc (right): https://codereview.chromium.org/583583003/diff/20001/chrome/browser/chromeos/drive/fake_file_system.cc#newcode149 chrome/browser/chromeos/drive/fake_file_system.cc:149: // Now, we only support files under my ...
6 years, 3 months ago (2014-09-24 11:36:54 UTC) #5
hirono
Thanks! https://codereview.chromium.org/583583003/diff/20001/chrome/browser/chromeos/drive/fake_file_system.cc File chrome/browser/chromeos/drive/fake_file_system.cc (right): https://codereview.chromium.org/583583003/diff/20001/chrome/browser/chromeos/drive/fake_file_system.cc#newcode149 chrome/browser/chromeos/drive/fake_file_system.cc:149: // Now, we only support files under my ...
6 years, 3 months ago (2014-09-25 03:55:11 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/583583003/40001
6 years, 3 months ago (2014-09-25 03:56:23 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001) as e0dfc6511fa091adb41e828dbd3c2b628bd9fafb
6 years, 3 months ago (2014-09-25 04:36:17 UTC) #9
commit-bot: I haz the power
6 years, 3 months ago (2014-09-25 04:37:08 UTC) #10
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bb138d429978b5b0b2b266d91a23538b10673593
Cr-Commit-Position: refs/heads/master@{#296644}

Powered by Google App Engine
This is Rietveld 408576698