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

Unified Diff: chrome/browser/extensions/extension_system.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: kDefaultChannel 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 | « no previous file | chrome/common/extensions/features/feature.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « no previous file | chrome/common/extensions/features/feature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698