| 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/remote_to_local_syncer.h
" | 5 #include "chrome/browser/sync_file_system/drive_backend/remote_to_local_syncer.h
" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 remote_metadata_ = GetFileMetadata( | 124 remote_metadata_ = GetFileMetadata( |
| 125 metadata_database(), dirty_tracker_->file_id()); | 125 metadata_database(), dirty_tracker_->file_id()); |
| 126 | 126 |
| 127 if (!remote_metadata_ || !remote_metadata_->has_details()) { | 127 if (!remote_metadata_ || !remote_metadata_->has_details()) { |
| 128 if (remote_metadata_ && !remote_metadata_->has_details()) { | 128 if (remote_metadata_ && !remote_metadata_->has_details()) { |
| 129 LOG(ERROR) << "Missing details of a remote file: " | 129 LOG(ERROR) << "Missing details of a remote file: " |
| 130 << remote_metadata_->file_id(); | 130 << remote_metadata_->file_id(); |
| 131 NOTREACHED(); | 131 NOTREACHED(); |
| 132 } | 132 } |
| 133 util::Log(logging::LOG_VERBOSE, FROM_HERE, | 133 util::Log(logging::LOG_VERBOSE, FROM_HERE, |
| 134 "[Remote -> Local]: Missing remote file case."); | 134 "[Remote -> Local]: Missing remote metadata case."); |
| 135 HandleMissingRemoteMetadata(callback); | 135 HandleMissingRemoteMetadata(callback); |
| 136 return; | 136 return; |
| 137 } | 137 } |
| 138 | 138 |
| 139 DCHECK(remote_metadata_); | 139 DCHECK(remote_metadata_); |
| 140 DCHECK(remote_metadata_->has_details()); | 140 DCHECK(remote_metadata_->has_details()); |
| 141 const FileDetails& remote_details = remote_metadata_->details(); | 141 const FileDetails& remote_details = remote_metadata_->details(); |
| 142 | 142 |
| 143 if (!dirty_tracker_->active() || | 143 if (!dirty_tracker_->active() || |
| 144 HasDisabledAppRoot(metadata_database(), *dirty_tracker_)) { | 144 HasDisabledAppRoot(metadata_database(), *dirty_tracker_)) { |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 762 return sync_context_->GetMetadataDatabase(); | 762 return sync_context_->GetMetadataDatabase(); |
| 763 } | 763 } |
| 764 | 764 |
| 765 RemoteChangeProcessor* RemoteToLocalSyncer::remote_change_processor() { | 765 RemoteChangeProcessor* RemoteToLocalSyncer::remote_change_processor() { |
| 766 DCHECK(sync_context_->GetRemoteChangeProcessor()); | 766 DCHECK(sync_context_->GetRemoteChangeProcessor()); |
| 767 return sync_context_->GetRemoteChangeProcessor(); | 767 return sync_context_->GetRemoteChangeProcessor(); |
| 768 } | 768 } |
| 769 | 769 |
| 770 } // namespace drive_backend | 770 } // namespace drive_backend |
| 771 } // namespace sync_file_system | 771 } // namespace sync_file_system |
| OLD | NEW |