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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/gdata/gdata_documents_service.h" 5 #include "chrome/browser/chromeos/gdata/gdata_documents_service.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop_proxy.h" 10 #include "base/message_loop_proxy.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 void DocumentsService::AuthorizeApp(const GURL& resource_url, 264 void DocumentsService::AuthorizeApp(const GURL& resource_url,
265 const std::string& app_ids, 265 const std::string& app_ids,
266 const GetDataCallback& callback) { 266 const GetDataCallback& callback) {
267 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 267 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
268 268
269 runner_->StartOperationWithRetry( 269 runner_->StartOperationWithRetry(
270 new AuthorizeAppsOperation(operation_registry(), profile_, callback, 270 new AuthorizeAppsOperation(operation_registry(), profile_, callback,
271 resource_url, app_ids)); 271 resource_url, app_ids));
272 } 272 }
273 273
274 bool DocumentsService::IsFullyAuthenticated() const {
275 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
276
277 return runner_->auth_service()->IsFullyAuthenticated();
278 }
279
280 bool DocumentsService::IsPartiallyAuthenticated() const {
281 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
282
283 return runner_->auth_service()->IsPartiallyAuthenticated();
284 }
285
274 } // namespace gdata 286 } // namespace gdata
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698