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

Unified Diff: chrome/browser/chromeos/drive/fake_file_system.cc

Issue 583583003: Files.app: Fix DCHECK in FakeFileSystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/drive/fake_file_system.cc
diff --git a/chrome/browser/chromeos/drive/fake_file_system.cc b/chrome/browser/chromeos/drive/fake_file_system.cc
index c53f260c4ebc8e6cec75780beb859ca7aed8d9e7..17f039d3e8e0e7ecf7fc682a3381fb1fe47a373b 100644
--- a/chrome/browser/chromeos/drive/fake_file_system.cc
+++ b/chrome/browser/chromeos/drive/fake_file_system.cc
@@ -147,8 +147,6 @@ void FakeFileSystem::GetResourceEntry(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Now, we only support files under my drive.
kinaba 2014/09/24 11:36:54 nit: I slightly prefer this comment to be moved be
hirono 2014/09/25 03:55:11 Done.
- DCHECK(!util::IsUnderDriveMountPoint(file_path));
-
if (file_path == util::GetDriveMyDriveRootPath()) {
// Specialized for the root entry.
drive_service_->GetAboutResource(
@@ -158,6 +156,7 @@ void FakeFileSystem::GetResourceEntry(
return;
}
+ DCHECK(util::GetDriveMyDriveRootPath().IsParent(file_path));
GetResourceEntry(
file_path.DirName(),
base::Bind(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698