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

Unified Diff: chrome/browser/chromeos/login/base_login_display_host.cc

Issue 10832035: Switch from SignedSettings to DeviceSettingsService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 years, 4 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/login/base_login_display_host.cc
diff --git a/chrome/browser/chromeos/login/base_login_display_host.cc b/chrome/browser/chromeos/login/base_login_display_host.cc
index 964e09f6d90519278534a45e518df838e50354f2..5d70c27ddf9eb40b1abf59ed12104c6470b7fa25 100644
--- a/chrome/browser/chromeos/login/base_login_display_host.cc
+++ b/chrome/browser/chromeos/login/base_login_display_host.cc
@@ -262,7 +262,7 @@ void BaseLoginDisplayHost::CheckForAutoEnrollment() {
// Start by checking if the device has already been owned.
pointer_factory_.InvalidateWeakPtrs();
- OwnershipService::GetSharedInstance()->GetStatusAsync(
+ DeviceSettingsService::Get()->GetOwnershipStatusAsync(
base::Bind(&BaseLoginDisplayHost::OnOwnershipStatusCheckDone,
pointer_factory_.GetWeakPtr()));
}
@@ -407,9 +407,9 @@ void BaseLoginDisplayHost::StartAnimation() {
}
void BaseLoginDisplayHost::OnOwnershipStatusCheckDone(
- OwnershipService::Status status,
+ DeviceSettingsService::OwnershipStatus status,
bool current_user_is_owner) {
- if (status != OwnershipService::OWNERSHIP_NONE) {
+ if (status != DeviceSettingsService::OWNERSHIP_NONE) {
// The device is already owned. No need for auto-enrollment checks.
VLOG(1) << "CheckForAutoEnrollment: device already owned";
return;

Powered by Google App Engine
This is Rietveld 408576698