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

Unified Diff: ppapi/proxy/file_io_resource.cc

Issue 25328002: PPAPI: Remove instance param from GetFileTaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/pepper/host_globals.cc ('k') | ppapi/proxy/plugin_globals.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/file_io_resource.cc
diff --git a/ppapi/proxy/file_io_resource.cc b/ppapi/proxy/file_io_resource.cc
index a2f55f121d3328291773c9b4a403bd2b311fffbb..d6b8395282008464bc108528d5e8811c6aaf3b6e 100644
--- a/ppapi/proxy/file_io_resource.cc
+++ b/ppapi/proxy/file_io_resource.cc
@@ -154,7 +154,7 @@ int32_t FileIOResource::Query(PP_FileInfo* info,
// For the non-blocking case, post a task to the file thread and add a
// completion task to write the result.
base::PostTaskAndReplyWithResult(
- PpapiGlobals::Get()->GetFileTaskRunner(pp_instance()),
+ PpapiGlobals::Get()->GetFileTaskRunner(),
FROM_HERE,
Bind(&FileIOResource::QueryOp::DoWork, query_op),
RunWhileLocked(Bind(&TrackedCallback::Run, callback)));
@@ -317,7 +317,7 @@ int32_t FileIOResource::ReadValidated(int64_t offset,
// For the non-blocking case, post a task to the file thread.
base::PostTaskAndReplyWithResult(
- PpapiGlobals::Get()->GetFileTaskRunner(pp_instance()),
+ PpapiGlobals::Get()->GetFileTaskRunner(),
FROM_HERE,
Bind(&FileIOResource::ReadOp::DoWork, read_op),
RunWhileLocked(Bind(&TrackedCallback::Run, callback)));
@@ -331,7 +331,7 @@ void FileIOResource::CloseFileHandle() {
if (file_handle_ != base::kInvalidPlatformFileValue) {
// Close our local fd on the file thread.
base::TaskRunner* file_task_runner =
- PpapiGlobals::Get()->GetFileTaskRunner(pp_instance());
+ PpapiGlobals::Get()->GetFileTaskRunner();
file_task_runner->PostTask(FROM_HERE,
base::Bind(&DoClose, file_handle_));
« no previous file with comments | « content/renderer/pepper/host_globals.cc ('k') | ppapi/proxy/plugin_globals.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698