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

Unified Diff: chrome/browser/chromeos/settings/device_settings_test_helper.cc

Issue 565293003: Revert of Non-plafrom-specific part of an OwnerSettingsService is moved to components/ownership/*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/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 9225906e3d38966775903cad75ccdd4c7b858654..518e82466205638d61111d9626f84e3c9738420a 100644
--- a/chrome/browser/chromeos/settings/device_settings_test_helper.cc
+++ b/chrome/browser/chromeos/settings/device_settings_test_helper.cc
@@ -7,8 +7,8 @@
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
#include "base/threading/sequenced_worker_pool.h"
-#include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h"
-#include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_factory.h"
+#include "chrome/browser/chromeos/ownership/owner_settings_service.h"
+#include "chrome/browser/chromeos/ownership/owner_settings_service_factory.h"
#include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
#include "chrome/browser/chromeos/profiles/profile_helper.h"
#include "chrome/browser/chromeos/settings/device_settings_service.h"
@@ -207,7 +207,7 @@
: user_manager_(new FakeUserManager()),
user_manager_enabler_(user_manager_),
owner_key_util_(new ownership::MockOwnerKeyUtil()) {
- OwnerSettingsServiceChromeOSFactory::GetInstance()->SetOwnerKeyUtilForTesting(
+ OwnerSettingsServiceFactory::GetInstance()->SetOwnerKeyUtilForTesting(
owner_key_util_);
}
@@ -228,13 +228,13 @@
device_settings_test_helper_.set_policy_blob(device_policy_.GetBlob());
device_settings_service_.SetSessionManager(&device_settings_test_helper_,
owner_key_util_);
- OwnerSettingsServiceChromeOS::SetDeviceSettingsServiceForTesting(
+ OwnerSettingsService::SetDeviceSettingsServiceForTesting(
&device_settings_service_);
profile_.reset(new TestingProfile());
}
void DeviceSettingsTestBase::TearDown() {
- OwnerSettingsServiceChromeOS::SetDeviceSettingsServiceForTesting(NULL);
+ OwnerSettingsService::SetDeviceSettingsServiceForTesting(NULL);
FlushDeviceSettings();
device_settings_service_.UnsetSessionManager();
DBusThreadManager::Shutdown();
@@ -259,8 +259,8 @@
ProfileHelper::Get()->SetUserToProfileMappingForTesting(user,
profile_.get());
}
- OwnerSettingsServiceChromeOS* service =
- OwnerSettingsServiceChromeOSFactory::GetForProfile(profile_.get());
+ OwnerSettingsService* service =
+ OwnerSettingsServiceFactory::GetForProfile(profile_.get());
CHECK(service);
if (tpm_is_ready)
service->OnTPMTokenReady(true /* token is enabled */);

Powered by Google App Engine
This is Rietveld 408576698