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

Unified Diff: chrome/browser/invalidation/invalidation_service_factory.cc

Issue 23643002: Enable invalidations for arbitrary objects on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/invalidation/invalidation_service_factory.cc
diff --git a/chrome/browser/invalidation/invalidation_service_factory.cc b/chrome/browser/invalidation/invalidation_service_factory.cc
index 741e6fb216b93b8049db569ec3528a55da1b0cf8..9daa7163fd2de03d20e96f2befd793f81114f853 100644
--- a/chrome/browser/invalidation/invalidation_service_factory.cc
+++ b/chrome/browser/invalidation/invalidation_service_factory.cc
@@ -20,6 +20,10 @@
#include "chrome/browser/signin/token_service_factory.h"
#include "components/browser_context_keyed_service/browser_context_dependency_manager.h"
+#if defined(OS_ANDROID)
+#include "chrome/browser/invalidation/invalidation_controller_android.h"
+#endif // defined(OS_ANDROID)
+
class TokenService;
namespace invalidation {
@@ -86,7 +90,9 @@ BrowserContextKeyedService* InvalidationServiceFactory::BuildServiceInstanceFor(
}
#if defined(OS_ANDROID)
- InvalidationServiceAndroid* service = new InvalidationServiceAndroid(profile);
+ InvalidationServiceAndroid* service = new InvalidationServiceAndroid(
+ profile,
+ new InvalidationControllerAndroid());
return service;
#else
SigninManagerBase* signin_manager =

Powered by Google App Engine
This is Rietveld 408576698