Index: chrome/browser/chromeos/settings/device_settings_test_helper.cc |
diff --git a/chrome/browser/chromeos/settings/device_settings_test_helper.cc b/chrome/browser/chromeos/settings/device_settings_test_helper.cc |
index 3704edbbd272dafb89b0ceb054bf68173eea6f42..d30a4da7b7ae69154e4cdec77754d128800629f3 100644 |
--- a/chrome/browser/chromeos/settings/device_settings_test_helper.cc |
+++ b/chrome/browser/chromeos/settings/device_settings_test_helper.cc |
@@ -256,7 +256,7 @@ void DeviceSettingsTestBase::InitOwner(const std::string& user_id, |
const_cast<user_manager::User*>(user)); |
} |
OwnerSettingsServiceChromeOS* service = |
- OwnerSettingsServiceChromeOSFactory::GetForBrowserContext(profile_.get()); |
+ OwnerSettingsServiceChromeOSFactory::GetForProfile(profile_.get()); |
CHECK(service); |
if (tpm_is_ready) |
service->OnTPMTokenReady(true /* token is enabled */); |