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

Unified Diff: chrome/browser/google_apis/fake_drive_service.cc

Issue 12039005: drive: Deal with the root directory in the same way as others in MoveOperation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: chrome/browser/google_apis/fake_drive_service.cc
diff --git a/chrome/browser/google_apis/fake_drive_service.cc b/chrome/browser/google_apis/fake_drive_service.cc
index 8c7d086410a851c2aef1c8d343fbc7e7f26e0483..e7538bc767943d78cda6cd6384287815fcb443f3 100644
--- a/chrome/browser/google_apis/fake_drive_service.cc
+++ b/chrome/browser/google_apis/fake_drive_service.cc
@@ -578,6 +578,14 @@ void FakeDriveService::RemoveResourceFromDirectory(
return;
}
}
+
+ // We are dealing with a no-"parent"-link file as in the root directory.
+ if (parent_content_url.is_empty()) {
+ AddNewChangestamp(entry);
+ MessageLoop::current()->PostTask(
+ FROM_HERE, base::Bind(callback, HTTP_SUCCESS));
+ return;
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698