| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/sync/base/sync_db_util.h" | 5 #include "components/sync/syncable/sync_db_util.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
| 9 #include "components/sync/syncable/directory.h" | 9 #include "components/sync/syncable/directory.h" |
| 10 #include "sql/connection.h" | 10 #include "sql/connection.h" |
| 11 | 11 |
| 12 namespace syncer { | 12 namespace syncer { |
| 13 | 13 |
| 14 void CheckSyncDbLastModifiedTime( | 14 void CheckSyncDbLastModifiedTime( |
| 15 const base::FilePath& sync_dir, | 15 const base::FilePath& sync_dir, |
| (...skipping 13 matching lines...) Expand all Loading... |
| 29 sql::Connection db; | 29 sql::Connection db; |
| 30 if (!db.Open(sync_db) || !db.QuickIntegrityCheck()) { | 30 if (!db.Open(sync_db) || !db.QuickIntegrityCheck()) { |
| 31 callback_runner->PostTask(FROM_HERE, base::Bind(callback, base::Time())); | 31 callback_runner->PostTask(FROM_HERE, base::Bind(callback, base::Time())); |
| 32 } else { | 32 } else { |
| 33 callback_runner->PostTask(FROM_HERE, | 33 callback_runner->PostTask(FROM_HERE, |
| 34 base::Bind(callback, info.last_modified)); | 34 base::Bind(callback, info.last_modified)); |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace syncer | 38 } // namespace syncer |
| OLD | NEW |