Index: chrome/browser/extensions/extension_system.cc |
diff --git a/chrome/browser/extensions/extension_system.cc b/chrome/browser/extensions/extension_system.cc |
index 55e31a31b3683ea0b6043fdf864837934d12d320..01bba644c68af15570d44877fec13eb15ea974d9 100644 |
--- a/chrome/browser/extensions/extension_system.cc |
+++ b/chrome/browser/extensions/extension_system.cc |
@@ -51,7 +51,9 @@ namespace extensions { |
// |
ExtensionSystem::ExtensionSystem() { |
- Feature::SetCurrentChannel(chrome::VersionInfo::GetChannel()); |
+ // Only set if it hasn't already been set (e.g. by a test). |
+ if (Feature::GetCurrentChannel() == Feature::GetDefaultChannel()) |
+ Feature::SetCurrentChannel(chrome::VersionInfo::GetChannel()); |
} |
ExtensionSystem::~ExtensionSystem() { |