| 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/syncable_file_system_util.h" | 5 #include "chrome/browser/sync_file_system/syncable_file_system_util.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/single_thread_task_runner.h" |
| 11 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 13 #include "base/thread_task_runner_handle.h" |
| 12 #include "storage/browser/fileapi/external_mount_points.h" | 14 #include "storage/browser/fileapi/external_mount_points.h" |
| 13 #include "storage/browser/fileapi/file_observers.h" | 15 #include "storage/browser/fileapi/file_observers.h" |
| 14 #include "storage/browser/fileapi/file_system_context.h" | 16 #include "storage/browser/fileapi/file_system_context.h" |
| 15 #include "storage/common/fileapi/file_system_util.h" | 17 #include "storage/common/fileapi/file_system_util.h" |
| 16 | 18 |
| 17 using storage::ExternalMountPoints; | 19 using storage::ExternalMountPoints; |
| 18 using storage::FileSystemContext; | 20 using storage::FileSystemContext; |
| 19 using storage::FileSystemURL; | 21 using storage::FileSystemURL; |
| 20 | 22 |
| 21 namespace sync_file_system { | 23 namespace sync_file_system { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 *url = deserialized; | 104 *url = deserialized; |
| 103 return true; | 105 return true; |
| 104 } | 106 } |
| 105 | 107 |
| 106 base::FilePath GetSyncFileSystemDir(const base::FilePath& profile_base_dir) { | 108 base::FilePath GetSyncFileSystemDir(const base::FilePath& profile_base_dir) { |
| 107 return profile_base_dir.Append(kSyncFileSystemDir); | 109 return profile_base_dir.Append(kSyncFileSystemDir); |
| 108 } | 110 } |
| 109 | 111 |
| 110 void RunSoon(const tracked_objects::Location& from_here, | 112 void RunSoon(const tracked_objects::Location& from_here, |
| 111 const base::Closure& callback) { | 113 const base::Closure& callback) { |
| 112 base::MessageLoop::current()->PostTask(from_here, callback); | 114 base::ThreadTaskRunnerHandle::Get()->PostTask(from_here, callback); |
| 113 } | 115 } |
| 114 | 116 |
| 115 base::Closure NoopClosure() { | 117 base::Closure NoopClosure() { |
| 116 return base::Bind(&Noop); | 118 return base::Bind(&Noop); |
| 117 } | 119 } |
| 118 | 120 |
| 119 } // namespace sync_file_system | 121 } // namespace sync_file_system |
| OLD | NEW |