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

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

Issue 6677049: Comb up ownership things. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: c Created 9 years, 9 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/browser/chromeos/login/ownership_service.h ('k') | chrome/browser/chromeos/login/user_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/ownership_service.cc
diff --git a/chrome/browser/chromeos/login/ownership_service.cc b/chrome/browser/chromeos/login/ownership_service.cc
index 325c0b97e54b79a297663c0f77e40a03723454c1..07bfc1e105a88dec6128a9005b7886ba193420f9 100644
--- a/chrome/browser/chromeos/login/ownership_service.cc
+++ b/chrome/browser/chromeos/login/ownership_service.cc
@@ -29,9 +29,10 @@ OwnershipService::OwnershipService()
: manager_(new OwnerManager),
utils_(OwnerKeyUtils::Create()),
ownership_status_(OWNERSHIP_UNKNOWN) {
- notification_registrar_.Add(this,
- NotificationType::OWNERSHIP_TAKEN,
- NotificationService::AllSources());
+ notification_registrar_.Add(
+ this,
+ NotificationType::OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED,
+ NotificationService::AllSources());
if (g_ownership_service == this) {
// Start getting ownership status.
BrowserThread::PostTask(
@@ -117,7 +118,7 @@ void OwnershipService::StartVerifyAttempt(const std::string& data,
void OwnershipService::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type.value == NotificationType::OWNERSHIP_TAKEN) {
+ if (type.value == NotificationType::OWNER_KEY_FETCH_ATTEMPT_SUCCEEDED) {
SetStatus(OWNERSHIP_TAKEN);
notification_registrar_.RemoveAll();
} else {
« no previous file with comments | « chrome/browser/chromeos/login/ownership_service.h ('k') | chrome/browser/chromeos/login/user_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698