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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 16466006: Deprecate media_task_runner() from FileSystemTaskRunners (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index f11e26fd588c63b8843be513c3d4abbb7eb27472..583f5af7b162d89919ad9e414103901335f7fe47 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -14,6 +14,7 @@
#include "base/path_service.h"
#include "base/prefs/pref_service.h"
#include "base/string_number_conversions.h"
+#include "base/threading/sequenced_worker_pool.h"
#include "base/utf_string_conversions.h"
#include "chrome/app/breakpad_mac.h"
#include "chrome/browser/app_mode/app_mode_utils.h"
@@ -105,6 +106,7 @@
#include "content/public/browser/browser_child_process_host.h"
#include "content/public/browser/browser_main_parts.h"
#include "content/public/browser/browser_ppapi_host.h"
+#include "content/public/browser/browser_thread.h"
#include "content/public/browser/browser_url_handler.h"
#include "content/public/browser/child_process_data.h"
#include "content/public/browser/child_process_security_policy.h"
@@ -2187,8 +2189,11 @@ void ChromeContentBrowserClient::GetAdditionalFileSystemMountPointProviders(
const base::FilePath& storage_partition_path,
ScopedVector<fileapi::FileSystemMountPointProvider>* additional_providers) {
#if !defined(OS_ANDROID)
+ base::SequencedWorkerPool* pool = content::BrowserThread::GetBlockingPool();
additional_providers->push_back(new MediaFileSystemMountPointProvider(
- storage_partition_path));
+ storage_partition_path,
+ pool->GetSequencedTaskRunner(pool->GetNamedSequenceToken(
+ MediaFileSystemMountPointProvider::kMediaTaskRunnerName))));
#endif
}
« no previous file with comments | « no previous file | chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698