Index: chrome/common/extensions/features/feature.cc |
diff --git a/chrome/common/extensions/features/feature.cc b/chrome/common/extensions/features/feature.cc |
index 550f9e31ce2269557d9d86ca4aff7e0b0cba4318..7aed0a8f7b8de621b0d70165f3de9ab0b637c47d 100644 |
--- a/chrome/common/extensions/features/feature.cc |
+++ b/chrome/common/extensions/features/feature.cc |
@@ -369,4 +369,11 @@ void Feature::ResetChannelForTesting() { |
g_channel.Get().ResetChannelForTesting(); |
} |
+// static |
+chrome::VersionInfo::Channel Feature::GetCurrentChannel() { |
+ if (g_channel_checking_enabled) |
+ return g_channel.Get().GetChannel(); |
+ return chrome::VersionInfo::GetChannel(); |
+} |
+ |
} // namespace |