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

Unified Diff: components/gcm_driver/gcm_desktop_utils.cc

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: Address review comments Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: components/gcm_driver/gcm_desktop_utils.cc
diff --git a/components/gcm_driver/gcm_desktop_utils.cc b/components/gcm_driver/gcm_desktop_utils.cc
index 332ad32a6676ca9b0ff5133821723d25b65167f3..9a2909b57918e061aa5c1ce54284e598f585dd2d 100644
--- a/components/gcm_driver/gcm_desktop_utils.cc
+++ b/components/gcm_driver/gcm_desktop_utils.cc
@@ -63,11 +63,14 @@ std::string GetVersion() {
return version_info::GetVersionNumber();
}
-GCMClient::ChromeBuildInfo GetChromeBuildInfo(version_info::Channel channel) {
+GCMClient::ChromeBuildInfo GetChromeBuildInfo(
+ version_info::Channel channel,
+ const std::string& category_for_subtypes) {
GCMClient::ChromeBuildInfo chrome_build_info;
chrome_build_info.platform = GetPlatform();
chrome_build_info.channel = GetChannel(channel);
chrome_build_info.version = GetVersion();
+ chrome_build_info.category_for_subtypes = category_for_subtypes;
return chrome_build_info;
}
@@ -92,11 +95,13 @@ std::unique_ptr<GCMDriver> CreateGCMDriverDesktop(
const base::FilePath& store_path,
const scoped_refptr<net::URLRequestContextGetter>& request_context,
version_info::Channel channel,
+ const std::string& category_for_subtypes,
const scoped_refptr<base::SequencedTaskRunner>& ui_task_runner,
const scoped_refptr<base::SequencedTaskRunner>& io_task_runner,
const scoped_refptr<base::SequencedTaskRunner>& blocking_task_runner) {
return std::unique_ptr<GCMDriver>(new GCMDriverDesktop(
- std::move(gcm_client_factory), GetChromeBuildInfo(channel),
+ std::move(gcm_client_factory),
+ GetChromeBuildInfo(channel, category_for_subtypes),
GetChannelStatusRequestUrl(channel), GetUserAgent(channel), prefs,
store_path, request_context, ui_task_runner, io_task_runner,
blocking_task_runner));

Powered by Google App Engine
This is Rietveld 408576698