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

Side by Side Diff: chrome/browser/chromeos/gdata/operation_runner.cc

Issue 10913184: Move basic operation components for Drive API to chrome/browser/google_apis directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 3 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/operation_runner.h" 5 #include "chrome/browser/chromeos/gdata/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/chromeos/gdata/auth_service.h"
9 #include "chrome/browser/chromeos/gdata/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)
19 : profile_(profile), 19 : profile_(profile),
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/gdata/operation_runner.h ('k') | chrome/browser/chromeos/gdata/operations_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698