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

Unified Diff: chrome/browser/chromeos/ownership/owner_settings_service_chromeos_unittest.cc

Issue 790183002: Revert of Call to CrosSettings::Set() is replaced by OwnerSettingsService::Set() in VersionUpda... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years 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/browser/chromeos/ownership/owner_settings_service_chromeos_unittest.cc
diff --git a/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_unittest.cc b/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_unittest.cc
index 6a7aa4d9317f523ffd4f6644b28791c22f2e70ce..6942636ed5597b4887988f8f1e6ca86f8321472f 100644
--- a/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_unittest.cc
+++ b/chrome/browser/chromeos/ownership/owner_settings_service_chromeos_unittest.cc
@@ -96,8 +96,8 @@ class OwnerSettingsServiceChromeOSTest : public DeviceSettingsTestBase {
InitOwner(device_policy_.policy_data().username(), true);
FlushDeviceSettings();
- service_ = OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(
- profile_.get());
+ service_ =
+ OwnerSettingsServiceChromeOSFactory::GetForProfile(profile_.get());
ASSERT_TRUE(service_);
ASSERT_TRUE(service_->IsOwner());
@@ -305,8 +305,8 @@ class OwnerSettingsServiceChromeOSNoOwnerTest
provider_.reset(new DeviceSettingsProvider(base::Bind(&OnPrefChanged),
&device_settings_service_));
FlushDeviceSettings();
- service_ = OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(
- profile_.get());
+ service_ =
+ OwnerSettingsServiceChromeOSFactory::GetForProfile(profile_.get());
ASSERT_TRUE(service_);
ASSERT_FALSE(service_->IsOwner());
}

Powered by Google App Engine
This is Rietveld 408576698