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

Unified Diff: components/proximity_auth/cryptauth/sync_scheduler.cc

Issue 1146193002: Revert of Add SyncScheduler for scheduling CryptAuth enrollments and syncing devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: components/proximity_auth/cryptauth/sync_scheduler.cc
diff --git a/components/proximity_auth/cryptauth/sync_scheduler.cc b/components/proximity_auth/cryptauth/sync_scheduler.cc
deleted file mode 100644
index 4e3dd320a17e774a0872148db3aa17c5aef28dda..0000000000000000000000000000000000000000
--- a/components/proximity_auth/cryptauth/sync_scheduler.cc
+++ /dev/null
@@ -1,31 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/proximity_auth/cryptauth/sync_scheduler.h"
-
-#include "components/proximity_auth/logging/logging.h"
-
-namespace proximity_auth {
-
-SyncScheduler::SyncRequest::SyncRequest(
- base::WeakPtr<SyncScheduler> sync_scheduler)
- : sync_scheduler_(sync_scheduler), completed_(false) {
-}
-
-SyncScheduler::SyncRequest::~SyncRequest() {
- if (!completed_)
- PA_LOG(ERROR) << "SyncRequest destroyed but Complete() was never called";
-}
-
-void SyncScheduler::SyncRequest::OnDidComplete(bool success) {
- if (sync_scheduler_) {
- sync_scheduler_->OnSyncCompleted(success);
- sync_scheduler_.reset();
- completed_ = true;
- } else {
- PA_LOG(ERROR) << "SyncRequest completed, but SyncScheduler destroyed.";
- }
-}
-
-} // proximity_auth
« no previous file with comments | « components/proximity_auth/cryptauth/sync_scheduler.h ('k') | components/proximity_auth/cryptauth/sync_scheduler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698