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

Unified Diff: chrome/browser/sync_file_system/drive_file_sync_client.h

Issue 11316266: Add DriveFileSyncClient::IsAuthenticated (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/sync_file_system/drive_file_sync_client.h
diff --git a/chrome/browser/sync_file_system/drive_file_sync_client.h b/chrome/browser/sync_file_system/drive_file_sync_client.h
index e2b43f6f8b746caa12f6e5e12b4fe1689018c668..48043d69bcc80bfe75adc49ee2ef2236e87d00c3 100644
--- a/chrome/browser/sync_file_system/drive_file_sync_client.h
+++ b/chrome/browser/sync_file_system/drive_file_sync_client.h
@@ -136,6 +136,11 @@ class DriveFileSyncClient : public base::NonThreadSafe,
int64 file_size,
const UploadFileCallback& callback);
+ // Returns true if the user is authenticated.
+ bool IsAuthenticated() const {
+ return drive_service_->HasRefreshToken();
+ }
+
// Deletes the file identified by |resource_id|.
// |remote_file_md5| represents the expected hash value of the file to be
// deleted from Drive. If |remote_file_md5| is different from the actual
« 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