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

Unified Diff: chrome/browser/extensions/api/messaging/native_message_process_host.cc

Issue 323683002: net: FileStream cleanup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add DCHECK, fix ASSERT message Created 6 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
Index: chrome/browser/extensions/api/messaging/native_message_process_host.cc
diff --git a/chrome/browser/extensions/api/messaging/native_message_process_host.cc b/chrome/browser/extensions/api/messaging/native_message_process_host.cc
index b4993dc5c8c770a607d03c9b9f529b9176e49ce8..7d7e37f40dddd6523f13624e297b3bd3b5936e56 100644
--- a/chrome/browser/extensions/api/messaging/native_message_process_host.cc
+++ b/chrome/browser/extensions/api/messaging/native_message_process_host.cc
@@ -7,7 +7,6 @@
#include "base/bind.h"
#include "base/files/file_path.h"
#include "base/logging.h"
-#include "base/platform_file.h"
#include "base/prefs/pref_service.h"
#include "base/process/kill.h"
#include "base/threading/sequenced_worker_pool.h"
@@ -105,7 +104,7 @@ NativeMessageProcessHost::NativeMessageProcessHost(
closed_(false),
process_handle_(base::kNullProcessHandle),
#if defined(OS_POSIX)
- read_file_(base::kInvalidPlatformFileValue),
+ read_file_(-1),
wtc 2014/06/19 18:20:49 Nit: the original code (base::kInvalidPlatformFile
rvargas (doing something else) 2014/06/19 18:46:42 Unfortunately, my next patch will completely remov
#endif
read_pending_(false),
write_pending_(false) {

Powered by Google App Engine
This is Rietveld 408576698