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/drive_backend_util.h" | 5 #include "chrome/browser/sync_file_system/drive_backend/drive_backend_util.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_vector.h" | 9 #include "base/memory/scoped_vector.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 if (error == -1) | 259 if (error == -1) |
260 return SYNC_STATUS_NETWORK_ERROR; | 260 return SYNC_STATUS_NETWORK_ERROR; |
261 | 261 |
262 util::Log(logging::LOG_WARNING, | 262 util::Log(logging::LOG_WARNING, |
263 FROM_HERE, | 263 FROM_HERE, |
264 "Got unexpected error: %d", | 264 "Got unexpected error: %d", |
265 static_cast<int>(error)); | 265 static_cast<int>(error)); |
266 return SYNC_STATUS_FAILED; | 266 return SYNC_STATUS_FAILED; |
267 } | 267 } |
268 | 268 |
| 269 scoped_ptr<FileTracker> CloneFileTracker(const FileTracker* obj) { |
| 270 if (!obj) |
| 271 return scoped_ptr<FileTracker>(); |
| 272 return scoped_ptr<FileTracker>(new FileTracker(*obj)); |
| 273 } |
| 274 |
269 } // namespace drive_backend | 275 } // namespace drive_backend |
270 } // namespace sync_file_system | 276 } // namespace sync_file_system |
OLD | NEW |