Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: chrome/browser/sync_file_system/syncable_file_system_util.cc

Issue 1143343005: chrome/browser: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/sync_file_system/local/local_file_sync_context_unittest.cc ('k') | chrome/browser/task_manager/task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698