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

Unified Diff: chrome/common/extensions/features/feature.cc

Issue 10854177: Only set the channel from ExtensionSystem if there hasn't been one set already. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « chrome/common/extensions/features/feature.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/features/feature.cc
diff --git a/chrome/common/extensions/features/feature.cc b/chrome/common/extensions/features/feature.cc
index 3da8726e386acf3003ece3a22741e6612cb42836..cec490710f4aa8dcaf7ee9caa6b70fc3b332880b 100644
--- a/chrome/common/extensions/features/feature.cc
+++ b/chrome/common/extensions/features/feature.cc
@@ -62,7 +62,8 @@ std::string GetChannelName(VersionInfo::Channel channel) {
return "unknown";
}
-VersionInfo::Channel g_current_channel = VersionInfo::CHANNEL_STABLE;
+VersionInfo::Channel g_default_channel = VersionInfo::CHANNEL_STABLE;
Matt Perry 2012/08/15 23:13:02 make it a const? kDefaultChannel
not at google - send to devlin 2012/08/15 23:16:10 Done.
+VersionInfo::Channel g_current_channel = g_default_channel;
// TODO(aa): Can we replace all this manual parsing with JSON schema stuff?
@@ -334,4 +335,9 @@ void Feature::SetCurrentChannel(VersionInfo::Channel channel) {
g_current_channel = channel;
}
+// static
+chrome::VersionInfo::Channel Feature::GetDefaultChannel() {
+ return g_default_channel;
+}
+
} // namespace
« no previous file with comments | « chrome/common/extensions/features/feature.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698