OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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 #include "chrome/browser/services/gcm/gcm_profile_service.h" | |
6 #include "chrome/common/chrome_version_info.h" | |
7 | |
8 namespace gcm { | |
9 | |
10 // static | |
11 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.
| |
12 // GCM support is only enabled for Canary/Dev builds. | |
13 chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel(); | |
14 return channel == chrome::VersionInfo::CHANNEL_CANARY || | |
15 channel == chrome::VersionInfo::CHANNEL_DEV; | |
16 } | |
17 | |
18 GCMProfileService::GCMProfileService(Profile* profile) | |
19 : profile_(profile) { | |
20 } | |
21 | |
22 GCMProfileService::~GCMProfileService() { | |
23 } | |
24 | |
25 } // namespace gcm | |
OLD | NEW |