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

Side by Side 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 to land 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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() {
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
OLDNEW
« no previous file with comments | « chrome/browser/services/gcm/gcm_profile_service.h ('k') | chrome/browser/services/gcm/gcm_profile_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698