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

Side by Side Diff: content/browser/fileapi/browser_file_system_helper.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/fileapi/browser_file_system_helper.h" 5 #include "content/browser/fileapi/browser_file_system_helper.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 &additional_backends); 69 &additional_backends);
70 70
71 // Set up the auto mount handlers for url requests. 71 // Set up the auto mount handlers for url requests.
72 std::vector<storage::URLRequestAutoMountHandler> 72 std::vector<storage::URLRequestAutoMountHandler>
73 url_request_auto_mount_handlers; 73 url_request_auto_mount_handlers;
74 GetContentClient()->browser()->GetURLRequestAutoMountHandlers( 74 GetContentClient()->browser()->GetURLRequestAutoMountHandlers(
75 &url_request_auto_mount_handlers); 75 &url_request_auto_mount_handlers);
76 76
77 scoped_refptr<storage::FileSystemContext> file_system_context = 77 scoped_refptr<storage::FileSystemContext> file_system_context =
78 new storage::FileSystemContext( 78 new storage::FileSystemContext(
79 BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO).get(), 79 BrowserThread::GetTaskRunnerForThread(BrowserThread::IO).get(),
80 file_task_runner.get(), 80 file_task_runner.get(),
81 BrowserContext::GetMountPoints(browser_context), 81 BrowserContext::GetMountPoints(browser_context),
82 browser_context->GetSpecialStoragePolicy(), quota_manager_proxy, 82 browser_context->GetSpecialStoragePolicy(), quota_manager_proxy,
83 std::move(additional_backends), url_request_auto_mount_handlers, 83 std::move(additional_backends), url_request_auto_mount_handlers,
84 profile_path, CreateBrowserFileSystemOptions(is_incognito)); 84 profile_path, CreateBrowserFileSystemOptions(is_incognito));
85 85
86 std::vector<storage::FileSystemType> types; 86 std::vector<storage::FileSystemType> types;
87 file_system_context->GetFileSystemTypes(&types); 87 file_system_context->GetFileSystemTypes(&types);
88 for (size_t i = 0; i < types.size(); ++i) { 88 for (size_t i = 0; i < types.size(); ++i) {
89 ChildProcessSecurityPolicyImpl::GetInstance() 89 ChildProcessSecurityPolicyImpl::GetInstance()
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 context->operation_runner()->SyncGetPlatformPath(url, platform_path); 126 context->operation_runner()->SyncGetPlatformPath(url, platform_path);
127 127
128 // The path is to be attached to URLLoader so we grant read permission 128 // The path is to be attached to URLLoader so we grant read permission
129 // for the file. (We need to check first because a parent directory may 129 // for the file. (We need to check first because a parent directory may
130 // already have the permissions and we don't need to grant it to the file.) 130 // already have the permissions and we don't need to grant it to the file.)
131 if (!policy->CanReadFile(process_id, *platform_path)) 131 if (!policy->CanReadFile(process_id, *platform_path))
132 policy->GrantReadFile(process_id, *platform_path); 132 policy->GrantReadFile(process_id, *platform_path);
133 } 133 }
134 134
135 } // namespace content 135 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/download/download_request_core.cc ('k') | content/browser/fileapi/file_system_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698