| 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/operation_runner.h" | 5 #include "chrome/browser/google_apis/operation_runner.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "chrome/browser/chromeos/gdata/auth_service.h" | 8 #include "chrome/browser/google_apis/auth_service.h" |
| 9 #include "chrome/browser/google_apis/operations_base.h" | 9 #include "chrome/browser/google_apis/operations_base.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 12 | 12 |
| 13 using content::BrowserThread; | 13 using content::BrowserThread; |
| 14 | 14 |
| 15 namespace gdata { | 15 namespace gdata { |
| 16 | 16 |
| 17 OperationRunner::OperationRunner(Profile* profile, | 17 OperationRunner::OperationRunner(Profile* profile, |
| 18 const std::vector<std::string>& scopes) | 18 const std::vector<std::string>& scopes) |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 AuthenticatedOperationInterface* operation) { | 88 AuthenticatedOperationInterface* operation) { |
| 89 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 89 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| 90 | 90 |
| 91 auth_service_->ClearAccessToken(); | 91 auth_service_->ClearAccessToken(); |
| 92 // User authentication might have expired - rerun the request to force | 92 // User authentication might have expired - rerun the request to force |
| 93 // auth token refresh. | 93 // auth token refresh. |
| 94 StartOperation(operation); | 94 StartOperation(operation); |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace gdata | 97 } // namespace gdata |
| OLD | NEW |