Index: chrome/installer/util/product.cc |
diff --git a/chrome/installer/util/product.cc b/chrome/installer/util/product.cc |
index 32b70e485fc8b6a2094c44e3016ec2ec3b38e4fe..1be56dddf8fecf60bf07237c672e5891249ff3bd 100644 |
--- a/chrome/installer/util/product.cc |
+++ b/chrome/installer/util/product.cc |
@@ -24,18 +24,10 @@ using installer::MasterPreferences; |
namespace installer { |
Product::Product(BrowserDistribution* distribution) |
- : distribution_(distribution) { |
- switch (distribution->GetType()) { |
- case BrowserDistribution::CHROME_BROWSER: |
- operations_.reset(InstallUtil::IsChromeSxSProcess() ? |
- new ChromeBrowserSxSOperations() : |
- new ChromeBrowserOperations()); |
- break; |
- default: |
- NOTREACHED() << "Unsupported BrowserDistribution::Type: " |
- << distribution->GetType(); |
- } |
-} |
+ : distribution_(distribution), |
+ operations_(InstallUtil::IsChromeSxSProcess() |
+ ? new ChromeBrowserSxSOperations() |
+ : new ChromeBrowserOperations()) {} |
Product::~Product() { |
} |