Index: chrome/browser/sync_file_system/drive_backend_v1/api_util.cc |
diff --git a/chrome/browser/sync_file_system/drive_backend_v1/api_util.cc b/chrome/browser/sync_file_system/drive_backend_v1/api_util.cc |
index 4c5525e5ba78b174512616fd83ea01c18b63946d..7c4bc7980401338a9040305f6c35245ce9859ca3 100644 |
--- a/chrome/browser/sync_file_system/drive_backend_v1/api_util.cc |
+++ b/chrome/browser/sync_file_system/drive_backend_v1/api_util.cc |
@@ -171,11 +171,15 @@ APIUtil::APIUtil(Profile* profile, |
temp_dir_path_(temp_dir_path) { |
ProfileOAuth2TokenService* oauth_service = |
ProfileOAuth2TokenServiceFactory::GetForProfile(profile); |
+ base::SequencedWorkerPool* blocking_pool = |
+ content::BrowserThread::GetBlockingPool(); |
+ scoped_refptr<base::SequencedTaskRunner> task_runner( |
+ blocking_pool->GetSequencedTaskRunner(blocking_pool->GetSequenceToken())); |
if (IsDriveAPIDisabled()) { |
drive_service_.reset(new drive::GDataWapiService( |
oauth_service, |
profile->GetRequestContext(), |
- content::BrowserThread::GetBlockingPool(), |
+ task_runner.get(), |
GURL(google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction), |
GURL(google_apis::GDataWapiUrlGenerator::kBaseDownloadUrlForProduction), |
std::string() /* custom_user_agent */)); |
@@ -183,7 +187,7 @@ APIUtil::APIUtil(Profile* profile, |
drive_service_.reset(new drive::DriveAPIService( |
oauth_service, |
profile->GetRequestContext(), |
- content::BrowserThread::GetBlockingPool(), |
+ task_runner.get(), |
GURL(google_apis::DriveApiUrlGenerator::kBaseUrlForProduction), |
GURL(google_apis::DriveApiUrlGenerator::kBaseDownloadUrlForProduction), |
GURL(google_apis::GDataWapiUrlGenerator::kBaseUrlForProduction), |