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/register_app_task.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/register_app_task.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/location.h" | 8 #include "base/location.h" |
9 #include "chrome/browser/drive/drive_api_util.h" | |
10 #include "chrome/browser/drive/drive_service_interface.h" | |
11 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" | 9 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_constants.
h" |
12 #include "chrome/browser/sync_file_system/drive_backend/folder_creator.h" | 10 #include "chrome/browser/sync_file_system/drive_backend/folder_creator.h" |
13 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" | 11 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" |
14 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" | 12 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.pb.h" |
15 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" | 13 #include "chrome/browser/sync_file_system/drive_backend/sync_engine_context.h" |
16 #include "chrome/browser/sync_file_system/drive_backend/tracker_id_set.h" | 14 #include "chrome/browser/sync_file_system/drive_backend/tracker_id_set.h" |
17 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" | 15 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
| 16 #include "components/drive/drive_api_util.h" |
| 17 #include "components/drive/service/drive_service_interface.h" |
18 #include "google_apis/drive/drive_api_parser.h" | 18 #include "google_apis/drive/drive_api_parser.h" |
19 | 19 |
20 namespace sync_file_system { | 20 namespace sync_file_system { |
21 namespace drive_backend { | 21 namespace drive_backend { |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
25 bool CompareOnCTime(const FileTracker& left, | 25 bool CompareOnCTime(const FileTracker& left, |
26 const FileTracker& right) { | 26 const FileTracker& right) { |
27 return left.synced_details().creation_time() < | 27 return left.synced_details().creation_time() < |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 MetadataDatabase* RegisterAppTask::metadata_database() { | 175 MetadataDatabase* RegisterAppTask::metadata_database() { |
176 return sync_context_->GetMetadataDatabase(); | 176 return sync_context_->GetMetadataDatabase(); |
177 } | 177 } |
178 | 178 |
179 drive::DriveServiceInterface* RegisterAppTask::drive_service() { | 179 drive::DriveServiceInterface* RegisterAppTask::drive_service() { |
180 return sync_context_->GetDriveService(); | 180 return sync_context_->GetDriveService(); |
181 } | 181 } |
182 | 182 |
183 } // namespace drive_backend | 183 } // namespace drive_backend |
184 } // namespace sync_file_system | 184 } // namespace sync_file_system |
OLD | NEW |