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 8787bde7d6f944b57d94416e4cf996ccf2d174c5..ebdc8fad7b41f08d09b4ffe2b88f7da1bf44f042 100644 |
--- a/chrome/browser/services/gcm/gcm_profile_service_unittest.cc |
+++ b/chrome/browser/services/gcm/gcm_profile_service_unittest.cc |
@@ -12,11 +12,13 @@ |
#include "base/memory/ptr_util.h" |
#include "base/run_loop.h" |
#include "build/build_config.h" |
+#include "chrome/browser/services/gcm/gcm_product_util.h" |
#include "chrome/browser/services/gcm/gcm_profile_service_factory.h" |
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
#include "chrome/browser/signin/signin_manager_factory.h" |
#include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
#include "chrome/common/channel_info.h" |
+#include "chrome/common/chrome_version.h" |
Lei Zhang
2016/08/05 15:37:08
ditto
johnme
2016/08/08 18:22:05
Done.
|
#include "chrome/test/base/testing_profile.h" |
#include "components/gcm_driver/gcm_profile_service.h" |
#if defined(OS_CHROMEOS) |
@@ -54,6 +56,7 @@ std::unique_ptr<KeyedService> BuildGCMProfileService( |
return base::WrapUnique(new gcm::GCMProfileService( |
profile->GetPrefs(), profile->GetPath(), profile->GetRequestContext(), |
chrome::GetChannel(), |
+ gcm::GetProductCategoryForSubtypes(profile->GetPrefs()), |
std::unique_ptr<ProfileIdentityProvider>(new ProfileIdentityProvider( |
SigninManagerFactory::GetForProfile(profile), |
ProfileOAuth2TokenServiceFactory::GetForProfile(profile), |