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

Side by Side Diff: chrome/common/extensions/features/feature_channel.cc

Issue 22299009: Move channel-related (Chrome-specific) global state out of Feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 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/common/extensions/features/feature_channel.h"
6
7 using chrome::VersionInfo;
8
9 namespace {
10
11 const VersionInfo::Channel kDefaultChannel = VersionInfo::CHANNEL_STABLE;
12 VersionInfo::Channel g_current_channel = kDefaultChannel;
13
14 } // namespace
15
16 namespace extensions {
17
18 VersionInfo::Channel GetCurrentChannel() {
19 return g_current_channel;
20 }
21
22 void SetCurrentChannel(VersionInfo::Channel channel) {
23 g_current_channel = channel;
24 }
25
26 VersionInfo::Channel GetDefaultChannel() {
27 return kDefaultChannel;
28 }
29
30 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/features/feature_channel.h ('k') | chrome/common/extensions/features/simple_feature.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698