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

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

Issue 2026253003: Migrate WaitableEvent to enum-based constructor in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@WEvent_enums
Patch Set: Created 4 years, 7 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/child/fileapi/webfilesystem_impl.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/fileapi/webfilewriter_impl.cc
diff --git a/content/child/fileapi/webfilewriter_impl.cc b/content/child/fileapi/webfilewriter_impl.cc
index 8ec97332d183ad4091888c496501ca41a43f9faa..a2f8d92f89df126629e569c4397e698b84e20fb3 100644
--- a/content/child/fileapi/webfilewriter_impl.cc
+++ b/content/child/fileapi/webfilewriter_impl.cc
@@ -36,8 +36,11 @@ class WebFileWriterImpl::WriterBridge
task_runner_(running_on_worker_ ? base::ThreadTaskRunnerHandle::Get()
: nullptr),
written_bytes_(0) {
- if (type == WebFileWriterImpl::TYPE_SYNC)
- waitable_event_.reset(new base::WaitableEvent(false, false));
+ if (type == WebFileWriterImpl::TYPE_SYNC) {
+ waitable_event_.reset(new base::WaitableEvent(
+ base::WaitableEvent::ResetPolicy::AUTOMATIC,
+ base::WaitableEvent::InitialState::NOT_SIGNALED));
+ }
}
void Truncate(const GURL& path,
« no previous file with comments | « content/child/fileapi/webfilesystem_impl.cc ('k') | content/public/test/browser_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698