OLD | NEW |
1 // Copyright (c) 2012 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/sync/glue/password_model_worker.h" | 5 #include "chrome/browser/sync/glue/password_model_worker.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 #include "chrome/browser/password_manager/password_store.h" | 10 #include "chrome/browser/password_manager/password_store.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 void PasswordModelWorker::CallDoWorkAndSignalTask( | 49 void PasswordModelWorker::CallDoWorkAndSignalTask( |
50 const syncer::WorkCallback& work, | 50 const syncer::WorkCallback& work, |
51 WaitableEvent* done, | 51 WaitableEvent* done, |
52 syncer::SyncerError *error) { | 52 syncer::SyncerError *error) { |
53 *error = work.Run(); | 53 *error = work.Run(); |
54 done->Signal(); | 54 done->Signal(); |
55 } | 55 } |
56 | 56 |
57 void PasswordModelWorker::RegisterForPasswordLoopDestruction() { | 57 void PasswordModelWorker::RegisterForPasswordLoopDestruction() { |
58 MessageLoop::current()->AddDestructionObserver(this); | 58 base::MessageLoop::current()->AddDestructionObserver(this); |
59 } | 59 } |
60 | 60 |
61 } // namespace browser_sync | 61 } // namespace browser_sync |
OLD | NEW |