| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |