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

Side by Side Diff: chrome/browser/services/gcm/gcm_product_util.h

Issue 2111973002: Add support for GCM subtypes to desktop Instance ID implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid9push
Patch Set: Fix iOS compile Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(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 PrefService;
11
12 namespace user_prefs {
13 class PrefRegistrySyncable;
14 }
15
16 namespace gcm {
17
18 // Returns a string like "com.chrome.stable.macosx" that should be used as the
19 // GCM category when an app_id is sent as a subtype instead of as a category.
20 // This is generated once, then remains fixed forever (even if e.g. the product
21 // name or channel change), since it must match existing Instance ID tokens.
22 std::string GetProductCategoryForSubtypes(PrefService* prefs);
23
24 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry);
25
26 } // namespace gcm
27
28 #endif // CHROME_BROWSER_SERVICES_GCM_GCM_PRODUCT_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698