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

Unified Diff: webkit/plugins/npapi/plugin_stream_posix.cc

Issue 10495008: Further cleanup in PluginStream. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: rebase Created 8 years, 4 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 | « webkit/plugins/npapi/plugin_stream.cc ('k') | webkit/plugins/npapi/plugin_stream_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/plugins/npapi/plugin_stream_posix.cc
===================================================================
--- webkit/plugins/npapi/plugin_stream_posix.cc (revision 150590)
+++ webkit/plugins/npapi/plugin_stream_posix.cc (working copy)
@@ -23,10 +23,8 @@
}
void PluginStream::WriteAsFile() {
- if (requested_plugin_mode_ == NP_ASFILE ||
- requested_plugin_mode_ == NP_ASFILEONLY) {
+ if (RequestedPluginModeIsAsFile())
instance_->NPP_StreamAsFile(&stream_, temp_file_path_.value().c_str());
- }
}
size_t PluginStream::WriteBytes(const char* buf, size_t length) {
« no previous file with comments | « webkit/plugins/npapi/plugin_stream.cc ('k') | webkit/plugins/npapi/plugin_stream_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698