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

Unified Diff: content/child/fileapi/webfilewriter_impl.cc

Issue 897563002: Unify the three places that patch font loading for PDFium on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
Index: content/child/fileapi/webfilewriter_impl.cc
diff --git a/content/child/fileapi/webfilewriter_impl.cc b/content/child/fileapi/webfilewriter_impl.cc
index a8fd3eaa1b4e482689a3e5c2375ec19536b691db..0af17b8750eedffb69c096e6edd446dc9549cd24 100644
--- a/content/child/fileapi/webfilewriter_impl.cc
+++ b/content/child/fileapi/webfilewriter_impl.cc
@@ -6,7 +6,7 @@
#include "base/bind.h"
#include "base/synchronization/waitable_event.h"
-#include "content/child/child_thread.h"
+#include "content/child/child_thread_impl.h"
#include "content/child/fileapi/file_system_dispatcher.h"
#include "content/child/worker_task_runner.h"
@@ -15,8 +15,8 @@ namespace content {
namespace {
FileSystemDispatcher* GetFileSystemDispatcher() {
- return ChildThread::current() ?
- ChildThread::current()->file_system_dispatcher() : NULL;
+ return ChildThreadImpl::current() ?
+ ChildThreadImpl::current()->file_system_dispatcher() : NULL;
}
} // namespace
@@ -42,7 +42,7 @@ class WebFileWriterImpl::WriterBridge
status_callback_ = status_callback;
if (!GetFileSystemDispatcher())
return;
- ChildThread::current()->file_system_dispatcher()->Truncate(
+ ChildThreadImpl::current()->file_system_dispatcher()->Truncate(
path, offset, &request_id_,
base::Bind(&WriterBridge::DidFinish, this));
}
@@ -54,7 +54,7 @@ class WebFileWriterImpl::WriterBridge
status_callback_ = error_callback;
if (!GetFileSystemDispatcher())
return;
- ChildThread::current()->file_system_dispatcher()->Write(
+ ChildThreadImpl::current()->file_system_dispatcher()->Write(
path, id, offset, &request_id_,
base::Bind(&WriterBridge::DidWrite, this),
base::Bind(&WriterBridge::DidFinish, this));
@@ -64,7 +64,7 @@ class WebFileWriterImpl::WriterBridge
status_callback_ = status_callback;
if (!GetFileSystemDispatcher())
return;
- ChildThread::current()->file_system_dispatcher()->Cancel(
+ ChildThreadImpl::current()->file_system_dispatcher()->Cancel(
request_id_,
base::Bind(&WriterBridge::DidFinish, this));
}

Powered by Google App Engine
This is Rietveld 408576698