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

Unified Diff: chrome/browser/services/gcm/fake_gcm_client_factory.cc

Issue 292813007: Remove dependency on content::BrowserThread from GCMDriver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use SequencedTaskRunner Created 6 years, 7 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/services/gcm/fake_gcm_client_factory.cc
diff --git a/chrome/browser/services/gcm/fake_gcm_client_factory.cc b/chrome/browser/services/gcm/fake_gcm_client_factory.cc
index e3ce4c2e0197bf9dfde87af5cadac0ee6c067756..c565616ee801e4401f5bcce17af64cd28897b165 100644
--- a/chrome/browser/services/gcm/fake_gcm_client_factory.cc
+++ b/chrome/browser/services/gcm/fake_gcm_client_factory.cc
@@ -5,20 +5,26 @@
#include "chrome/browser/services/gcm/fake_gcm_client_factory.h"
#include "base/memory/scoped_ptr.h"
+#include "base/sequenced_task_runner.h"
#include "google_apis/gcm/gcm_client.h"
namespace gcm {
FakeGCMClientFactory::FakeGCMClientFactory(
- FakeGCMClient::StartMode gcm_client_start_mode)
- : gcm_client_start_mode_(gcm_client_start_mode) {
+ FakeGCMClient::StartMode gcm_client_start_mode,
+ const scoped_refptr<base::SequencedTaskRunner>& ui_thread,
+ const scoped_refptr<base::SequencedTaskRunner>& io_thread)
+ : gcm_client_start_mode_(gcm_client_start_mode),
+ ui_thread_(ui_thread),
+ io_thread_(io_thread) {
}
FakeGCMClientFactory::~FakeGCMClientFactory() {
}
scoped_ptr<GCMClient> FakeGCMClientFactory::BuildInstance() {
- return scoped_ptr<GCMClient>(new FakeGCMClient(gcm_client_start_mode_));
+ return scoped_ptr<GCMClient>(new FakeGCMClient(
+ gcm_client_start_mode_, ui_thread_, io_thread_));
}
} // namespace gcm

Powered by Google App Engine
This is Rietveld 408576698