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

Unified Diff: chrome/browser/services/gcm/gcm_profile_service_unittest.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/gcm_profile_service_unittest.cc
diff --git a/chrome/browser/services/gcm/gcm_profile_service_unittest.cc b/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
index ff6ce35ad46df5dd859cf5488d843fcad6b9c266..e4d170d61cfc6e563d6d80b750e191b902d353dd 100644
--- a/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
+++ b/chrome/browser/services/gcm/gcm_profile_service_unittest.cc
@@ -21,6 +21,7 @@
#include "components/gcm_driver/gcm_client_factory.h"
#include "components/pref_registry/pref_registry_syncable.h"
#include "content/public/browser/browser_context.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "google_apis/gcm/gcm_client.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -36,8 +37,12 @@ const char kUserID[] = "user";
KeyedService* BuildGCMProfileService(content::BrowserContext* context) {
return new GCMProfileService(
Profile::FromBrowserContext(context),
- scoped_ptr<GCMClientFactory>(
- new FakeGCMClientFactory(FakeGCMClient::NO_DELAY_START)));
+ scoped_ptr<GCMClientFactory>(new FakeGCMClientFactory(
+ FakeGCMClient::NO_DELAY_START,
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::UI),
+ content::BrowserThread::GetMessageLoopProxyForThread(
+ content::BrowserThread::IO))));
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698