OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_file_system/drive_backend/sync_engine.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/sync_engine.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" |
10 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
11 #include "base/thread_task_runner_handle.h" | 12 #include "base/thread_task_runner_handle.h" |
12 #include "base/threading/sequenced_worker_pool.h" | 13 #include "base/threading/sequenced_worker_pool.h" |
13 #include "base/time/time.h" | 14 #include "base/time/time.h" |
14 #include "base/values.h" | 15 #include "base/values.h" |
15 #include "chrome/browser/drive/drive_notification_manager_factory.h" | 16 #include "chrome/browser/drive/drive_notification_manager_factory.h" |
16 #include "chrome/browser/extensions/extension_service.h" | 17 #include "chrome/browser/extensions/extension_service.h" |
17 #include "chrome/browser/profiles/profile.h" | 18 #include "chrome/browser/profiles/profile.h" |
18 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 19 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
19 #include "chrome/browser/signin/signin_manager_factory.h" | 20 #include "chrome/browser/signin/signin_manager_factory.h" |
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 | 787 |
787 SyncStatusCallback SyncEngine::TrackCallback( | 788 SyncStatusCallback SyncEngine::TrackCallback( |
788 const SyncStatusCallback& callback) { | 789 const SyncStatusCallback& callback) { |
789 return callback_tracker_.Register( | 790 return callback_tracker_.Register( |
790 base::Bind(callback, SYNC_STATUS_ABORT), | 791 base::Bind(callback, SYNC_STATUS_ABORT), |
791 callback); | 792 callback); |
792 } | 793 } |
793 | 794 |
794 } // namespace drive_backend | 795 } // namespace drive_backend |
795 } // namespace sync_file_system | 796 } // namespace sync_file_system |
OLD | NEW |