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

Unified Diff: chrome/browser/services/gcm/gcm_profile_service.cc

Issue 60673002: Create services/gcm directory and add some initial files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch Created 7 years, 1 month 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: chrome/browser/services/gcm/gcm_profile_service.cc
diff --git a/chrome/browser/services/gcm/gcm_profile_service.cc b/chrome/browser/services/gcm/gcm_profile_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..cb270db30eb8d445cb3dd426d73447064b1e6fd6
--- /dev/null
+++ b/chrome/browser/services/gcm/gcm_profile_service.cc
@@ -0,0 +1,25 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/services/gcm/gcm_profile_service.h"
+#include "chrome/common/chrome_version_info.h"
+
+namespace gcm {
+
+// static
+bool GCMProfileService::IsGCMEnabled() {
Nicolas Zea 2013/11/05 20:17:33 nit: keep definitions this in the order from the h
jianli 2013/11/05 20:42:32 Done.
+ // GCM support is only enabled for Canary/Dev builds.
+ chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
+ return channel == chrome::VersionInfo::CHANNEL_CANARY ||
+ channel == chrome::VersionInfo::CHANNEL_DEV;
+}
+
+GCMProfileService::GCMProfileService(Profile* profile)
+ : profile_(profile) {
+}
+
+GCMProfileService::~GCMProfileService() {
+}
+
+} // namespace gcm

Powered by Google App Engine
This is Rietveld 408576698