Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / services / gcm / gcm_profile_service_factory.cc
index 2a5b4c5..437fa5f 100644 (file)
@@ -4,13 +4,19 @@
 
 #include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
 
+#include "base/memory/scoped_ptr.h"
 #include "chrome/browser/profiles/incognito_helpers.h"
 #include "chrome/browser/profiles/profile.h"
 #include "chrome/browser/services/gcm/gcm_client_factory.h"
 #include "chrome/browser/services/gcm/gcm_profile_service.h"
+#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
 #include "chrome/browser/signin/signin_manager_factory.h"
 #include "components/keyed_service/content/browser_context_dependency_manager.h"
 
+#if !defined(OS_ANDROID)
+#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h"
+#endif
+
 namespace gcm {
 
 // static
@@ -33,6 +39,10 @@ GCMProfileServiceFactory::GCMProfileServiceFactory()
         "GCMProfileService",
         BrowserContextDependencyManager::GetInstance()) {
   DependsOn(SigninManagerFactory::GetInstance());
+  DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance());
+#if !defined(OS_ANDROID)
+  DependsOn(LoginUIServiceFactory::GetInstance());
+#endif
 }
 
 GCMProfileServiceFactory::~GCMProfileServiceFactory() {