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

Side by Side Diff: chrome/browser/chromeos/login/ownership_status_checker.cc

Issue 9355059: Renaming virtual setters/getters in UserManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: year Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/login/ownership_status_checker.h" 5 #include "chrome/browser/chromeos/login/ownership_status_checker.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 9
10 using content::BrowserThread; 10 using content::BrowserThread;
11 11
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 DCHECK(origin_loop_->BelongsToCurrentThread()); 47 DCHECK(origin_loop_->BelongsToCurrentThread());
48 callback_.Reset(); 48 callback_.Reset();
49 } 49 }
50 50
51 void OwnershipStatusChecker::Core::CheckOnFileThread() { 51 void OwnershipStatusChecker::Core::CheckOnFileThread() {
52 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE)); 52 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
53 OwnershipService::Status status = 53 OwnershipService::Status status =
54 OwnershipService::GetSharedInstance()->IsAlreadyOwned() ? 54 OwnershipService::GetSharedInstance()->IsAlreadyOwned() ?
55 OwnershipService::OWNERSHIP_TAKEN : OwnershipService::OWNERSHIP_NONE; 55 OwnershipService::OWNERSHIP_TAKEN : OwnershipService::OWNERSHIP_NONE;
56 bool current_user_is_owner = 56 bool current_user_is_owner =
57 OwnershipService::GetSharedInstance()->CurrentUserIsOwner(); 57 OwnershipService::GetSharedInstance()->IsCurrentUserOwner();
58 origin_loop_->PostTask( 58 origin_loop_->PostTask(
59 FROM_HERE, 59 FROM_HERE,
60 base::Bind(&OwnershipStatusChecker::Core::ReportResult, this, status, 60 base::Bind(&OwnershipStatusChecker::Core::ReportResult, this, status,
61 current_user_is_owner)); 61 current_user_is_owner));
62 } 62 }
63 63
64 void OwnershipStatusChecker::Core::ReportResult( 64 void OwnershipStatusChecker::Core::ReportResult(
65 OwnershipService::Status status, bool current_user_is_owner) { 65 OwnershipService::Status status, bool current_user_is_owner) {
66 DCHECK(origin_loop_->BelongsToCurrentThread()); 66 DCHECK(origin_loop_->BelongsToCurrentThread());
67 if (!callback_.is_null()) { 67 if (!callback_.is_null()) {
68 callback_.Run(status, current_user_is_owner); 68 callback_.Run(status, current_user_is_owner);
69 callback_.Reset(); 69 callback_.Reset();
70 } 70 }
71 } 71 }
72 72
73 } // namespace chromeos 73 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ownership_service.cc ('k') | chrome/browser/chromeos/login/screen_locker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698