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

Unified Diff: chrome/browser/chromeos/gdata/gdata_documents_service.cc

Issue 10808108: gdata: Expose authentication states from GDataDocumentsService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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/chromeos/gdata/gdata_documents_service.cc
diff --git a/chrome/browser/chromeos/gdata/gdata_documents_service.cc b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
index 09b5dded65150cc5a6a0f4dbb543e377a14099ce..0a8213f5520d0a3c6ac7df7cbe5db948efa240e9 100644
--- a/chrome/browser/chromeos/gdata/gdata_documents_service.cc
+++ b/chrome/browser/chromeos/gdata/gdata_documents_service.cc
@@ -271,4 +271,16 @@ void DocumentsService::AuthorizeApp(const GURL& resource_url,
resource_url, app_ids));
}
+bool DocumentsService::IsFullyAuthenticated() const {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+
+ return runner_->auth_service()->IsFullyAuthenticated();
+}
+
+bool DocumentsService::IsPartiallyAuthenticated() const {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+
+ return runner_->auth_service()->IsPartiallyAuthenticated();
+}
+
} // namespace gdata

Powered by Google App Engine
This is Rietveld 408576698