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

Unified Diff: chrome/browser/chromeos/contacts/gdata_contacts_service.cc

Issue 18742002: Remove direct reference to GetBlockingPool() in c/b/google_apis. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix + rebase. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/contacts/gdata_contacts_service.cc
diff --git a/chrome/browser/chromeos/contacts/gdata_contacts_service.cc b/chrome/browser/chromeos/contacts/gdata_contacts_service.cc
index 12e41618f1183c5a8620c01069312482d86a8d5d..d95f66d10999a09834d70d35019303de55ece014 100644
--- a/chrome/browser/chromeos/contacts/gdata_contacts_service.cc
+++ b/chrome/browser/chromeos/contacts/gdata_contacts_service.cc
@@ -16,6 +16,7 @@
#include "base/metrics/histogram.h"
#include "base/stl_util.h"
#include "base/strings/string_util.h"
+#include "base/threading/sequenced_worker_pool.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
#include "base/values.h"
@@ -856,10 +857,12 @@ GDataContactsService::GDataContactsService(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
std::vector<std::string> scopes;
scopes.push_back(kContactsScope);
- sender_.reset(new google_apis::RequestSender(profile,
- url_request_context_getter,
- scopes,
- "" /* custom_user_agent */));
+ sender_.reset(new google_apis::RequestSender(
+ profile,
+ url_request_context_getter,
+ content::BrowserThread::GetBlockingPool(),
+ scopes,
+ "" /* custom_user_agent */));
}
GDataContactsService::~GDataContactsService() {
« no previous file with comments | « no previous file | chrome/browser/drive/drive_api_service.cc » ('j') | chrome/browser/google_apis/base_requests_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698