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

Unified Diff: chrome/installer/util/product.cc

Issue 2622883002: Remove BrowserDistribution::Type. (Closed)
Patch Set: Created 3 years, 11 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
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() {
}

Powered by Google App Engine
This is Rietveld 408576698