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

Unified Diff: chrome/browser/drive/fake_drive_service.h

Issue 445793003: Add permission check to FakeDriveService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 4 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 | chrome/browser/drive/fake_drive_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/fake_drive_service.h
diff --git a/chrome/browser/drive/fake_drive_service.h b/chrome/browser/drive/fake_drive_service.h
index 991f509ef29f857d49e8cf1b369e605d50731088..220973ed11bd3c57f3e72e8ca56d9cee9793d95d 100644
--- a/chrome/browser/drive/fake_drive_service.h
+++ b/chrome/browser/drive/fake_drive_service.h
@@ -284,6 +284,11 @@ class FakeDriveService : public DriveServiceInterface {
const base::Time& last_modified_time,
const google_apis::FileResourceCallback& callback);
+ // Sets the user's permission for an entry specified by |resource_id|.
+ google_apis::GDataErrorCode SetUserPermission(
+ const std::string& resource_id,
+ google_apis::drive::PermissionRole user_permission);
+
private:
struct EntryInfo;
struct UploadSession;
« no previous file with comments | « no previous file | chrome/browser/drive/fake_drive_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698