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

Unified Diff: chrome/browser/chromeos/login/ownership_status_checker.h

Issue 7741045: Delay the metrics policy migration call to make sure ownership has been taken. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed obsolete comment. Created 9 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/ownership_status_checker.h
diff --git a/chrome/browser/chromeos/login/ownership_status_checker.h b/chrome/browser/chromeos/login/ownership_status_checker.h
index fb726da04e0c4a303f87118859d78f145bd773fb..810892dbe6c0127f9533b10598bb79c9a7f6a676 100644
--- a/chrome/browser/chromeos/login/ownership_status_checker.h
+++ b/chrome/browser/chromeos/login/ownership_status_checker.h
@@ -23,8 +23,9 @@ namespace chromeos {
class OwnershipStatusChecker {
public:
// Callback function type. The status code is guaranteed to be different from
- // OWNERSHIP_UNKNOWN.
- typedef Callback1<OwnershipService::Status>::Type Callback;
+ // OWNERSHIP_UNKNOWN. The bool parameter is true when the current logged in
Mattias Nissler (ping if slow) 2011/08/31 15:08:33 s/when/if/
pastarmovj 2011/08/31 15:26:36 Done.
+ // user is the owner.
+ typedef Callback2<OwnershipService::Status, bool>::Type Callback;
explicit OwnershipStatusChecker(Callback* callback);
~OwnershipStatusChecker();
@@ -44,7 +45,8 @@ class OwnershipStatusChecker {
private:
void CheckOnFileThread();
- void ReportResult(OwnershipService::Status status);
+ void ReportResult(OwnershipService::Status status,
+ bool current_user_is_owner);
scoped_ptr<Callback> callback_;
scoped_refptr<base::MessageLoopProxy> origin_loop_;

Powered by Google App Engine
This is Rietveld 408576698