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

Side by Side Diff: chrome/browser/media_galleries/fileapi/file_path_watcher_util.cc

Issue 2318133002: Remove call to IsRunningSequenceOnCurrentThread() in media_file_system_backend.cc (Closed)
Patch Set: Leaky LazyInstance Created 4 years, 3 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/media_galleries/fileapi/file_path_watcher_util.h" 5 #include "chrome/browser/media_galleries/fileapi/file_path_watcher_util.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/location.h" 9 #include "base/location.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 MediaFileSystemBackend::MediaTaskRunner()->PostTask( 43 MediaFileSystemBackend::MediaTaskRunner()->PostTask(
44 FROM_HERE, base::Bind(watch_started_callback, base::Passed(&watcher))); 44 FROM_HERE, base::Bind(watch_started_callback, base::Passed(&watcher)));
45 } 45 }
46 46
47 } // namespace 47 } // namespace
48 48
49 void StartFilePathWatchOnMediaTaskRunner( 49 void StartFilePathWatchOnMediaTaskRunner(
50 const base::FilePath& path, 50 const base::FilePath& path,
51 const FileWatchStartedCallback& watch_started_callback, 51 const FileWatchStartedCallback& watch_started_callback,
52 const base::FilePathWatcher::Callback& path_changed_callback) { 52 const base::FilePathWatcher::Callback& path_changed_callback) {
53 DCHECK(MediaFileSystemBackend::CurrentlyOnMediaTaskRunnerThread()); 53 MediaFileSystemBackend::AssertCurrentlyOnMediaSequence();
54 content::BrowserThread::PostTask(content::BrowserThread::FILE, 54 content::BrowserThread::PostTask(content::BrowserThread::FILE,
55 FROM_HERE, 55 FROM_HERE,
56 base::Bind(&StartFilePathWatchOnFileThread, 56 base::Bind(&StartFilePathWatchOnFileThread,
57 path, 57 path,
58 watch_started_callback, 58 watch_started_callback,
59 path_changed_callback)); 59 path_changed_callback));
60 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698