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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/features/feature_channel.cc
diff --git a/chrome/common/extensions/features/feature_channel.cc b/chrome/common/extensions/features/feature_channel.cc
new file mode 100644
index 0000000000000000000000000000000000000000..98a178ef375f00117e7e00767029cc2218195bc1
--- /dev/null
+++ b/chrome/common/extensions/features/feature_channel.cc
@@ -0,0 +1,30 @@
+// Copyright 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/common/extensions/features/feature_channel.h"
+
+using chrome::VersionInfo;
+
+namespace {
+
+const VersionInfo::Channel kDefaultChannel = VersionInfo::CHANNEL_STABLE;
+VersionInfo::Channel g_current_channel = kDefaultChannel;
+
+} // namespace
+
+namespace extensions {
+
+VersionInfo::Channel GetCurrentChannel() {
+ return g_current_channel;
+}
+
+void SetCurrentChannel(VersionInfo::Channel channel) {
+ g_current_channel = channel;
+}
+
+VersionInfo::Channel GetDefaultChannel() {
+ return kDefaultChannel;
+}
+
+} // namespace extensions
« 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