Chromium Code Reviews| 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 |