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

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

Issue 1148383003: Only support seeking file streams from the beginning of the file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Win DBG build by Pass()-ing file out of CreateForAsyncHandle. Created 5 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_process_launcher_win.cc
diff --git a/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc b/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc
index 367aeb14054f84649963ea6af55fcea545e46756..fa01111b2e677d2a11f7e41ed5a083d6ed365b32 100644
--- a/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc
+++ b/chrome/browser/extensions/api/messaging/native_process_launcher_win.cc
@@ -170,8 +170,8 @@ bool NativeProcessLauncher::LaunchNativeProcess(
}
*process = cmd_process.Pass();
- *read_file = base::File(stdout_pipe.Take());
- *write_file = base::File(stdin_pipe.Take());
+ *read_file = base::File::CreateForAsyncHandle(stdout_pipe.Take());
+ *write_file = base::File::CreateForAsyncHandle(stdin_pipe.Take());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698