Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_SERVICES_GCM_GCM_PRODUCT_UTIL_H_ | |
| 6 #define CHROME_BROWSER_SERVICES_GCM_GCM_PRODUCT_UTIL_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 class PrefRegistrySimple; | |
| 11 class PrefService; | |
| 12 | |
| 13 namespace user_prefs { | |
| 14 class PrefRegistrySyncable; | |
| 15 } | |
| 16 | |
| 17 namespace gcm { | |
| 18 | |
| 19 // Returns a string like "com.chrome.stable.macosx" that should be used as the | |
|
jianli
2016/08/17 21:12:07
Even we need to use same category after channel ch
johnme
2016/08/18 17:43:21
Done (The assumption was that most users wouldn't
| |
| 20 // GCM category when an app_id is sent as a subtype instead of as a category. | |
| 21 // This is generated once, then remains fixed forever (even if e.g. the product | |
| 22 // name or channel change), since it must match existing Instance ID tokens. | |
| 23 std::string GetProductCategoryForSubtypes(PrefService* prefs); | |
| 24 | |
| 25 void RegisterPrefs(PrefRegistrySimple* registry); | |
| 26 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); | |
| 27 | |
| 28 } // namespace gcm | |
| 29 | |
| 30 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_PRODUCT_UTIL_H_ | |
| OLD | NEW |