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

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

Issue 2622883002: Remove BrowserDistribution::Type. (Closed)
Patch Set: fdoray comments 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
« no previous file with comments | « chrome/installer/util/google_chrome_distribution.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/google_update_settings_unittest.cc
diff --git a/chrome/installer/util/google_update_settings_unittest.cc b/chrome/installer/util/google_update_settings_unittest.cc
index 6f2e37a4f45ad0692b1df4c27adf95f540b27563..53cebb4b1ad56f6bb921c853d7022c7013b768e2 100644
--- a/chrome/installer/util/google_update_settings_unittest.cc
+++ b/chrome/installer/util/google_update_settings_unittest.cc
@@ -127,9 +127,7 @@ class GoogleUpdateSettingsTest : public testing::Test {
// Test the writing and deleting functionality of the experiments label
// helper.
void TestExperimentsLabelHelper(SystemUserInstall install) {
- BrowserDistribution* chrome =
- BrowserDistribution::GetSpecificDistribution(
- BrowserDistribution::CHROME_BROWSER);
+ BrowserDistribution* chrome = BrowserDistribution::GetDistribution();
base::string16 value;
#if defined(GOOGLE_CHROME_BUILD)
EXPECT_TRUE(chrome->ShouldSetExperimentLabels());
@@ -1190,9 +1188,7 @@ base::string16* CollectStatsConsent::chrome_state_key_;
base::string16* CollectStatsConsent::chrome_state_medium_key_;
void CollectStatsConsent::SetUpTestCase() {
- BrowserDistribution* dist =
- BrowserDistribution::GetSpecificDistribution(
- BrowserDistribution::CHROME_BROWSER);
+ BrowserDistribution* dist = BrowserDistribution::GetDistribution();
chrome_version_key_ = new base::string16(dist->GetVersionKey());
chrome_state_key_ = new base::string16(dist->GetStateKey());
chrome_state_medium_key_ = new base::string16(dist->GetStateMediumKey());
« no previous file with comments | « chrome/installer/util/google_chrome_distribution.cc ('k') | chrome/installer/util/install_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698