| Index: ios/chrome/browser/services/gcm/ios_chrome_gcm_profile_service_factory.h
|
| diff --git a/ios/chrome/browser/services/gcm/ios_chrome_gcm_profile_service_factory.h b/ios/chrome/browser/services/gcm/ios_chrome_gcm_profile_service_factory.h
|
| index edef82911fcab2d6e21d5ec27a5332016931900c..7c9956809e73e2380868860aad2126bf6065c3ea 100644
|
| --- a/ios/chrome/browser/services/gcm/ios_chrome_gcm_profile_service_factory.h
|
| +++ b/ios/chrome/browser/services/gcm/ios_chrome_gcm_profile_service_factory.h
|
| @@ -6,6 +6,7 @@
|
| #define IOS_CHROME_BROWSER_SERVICES_GCM_IOS_CHROME_GCM_PROFILE_SERVICE_FACTORY_H_
|
|
|
| #include <memory>
|
| +#include <string>
|
|
|
| #include "base/macros.h"
|
| #include "components/keyed_service/ios/browser_state_keyed_service_factory.h"
|
| @@ -33,6 +34,13 @@ class IOSChromeGCMProfileServiceFactory
|
|
|
| static IOSChromeGCMProfileServiceFactory* GetInstance();
|
|
|
| + // Returns a string like "com.chrome.ios" that should be used as the GCM
|
| + // category when an app_id is sent as a subtype instead of as a category. This
|
| + // string must never change during the lifetime of a Chrome install, since
|
| + // e.g. to unregister an Instance ID token the same category must be passed to
|
| + // GCM as was originally passed when registering it.
|
| + static std::string GetProductCategoryForSubtypes();
|
| +
|
| private:
|
| friend struct base::DefaultSingletonTraits<IOSChromeGCMProfileServiceFactory>;
|
|
|
|
|