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

Unified Diff: content/child/npapi/plugin_instance.cc

Issue 1844383003: Remove NPAPI support for form data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/npapi/plugin_instance.h ('k') | content/child/npapi/webplugin_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/npapi/plugin_instance.cc
diff --git a/content/child/npapi/plugin_instance.cc b/content/child/npapi/plugin_instance.cc
index da53c91167d9c13bbb00fd868104f0e5b49a994a..8121930cac5f101c43dc93d1d93004362e2d35f5 100644
--- a/content/child/npapi/plugin_instance.cc
+++ b/content/child/npapi/plugin_instance.cc
@@ -89,19 +89,6 @@ bool PluginInstance::Start(const GURL& url,
return err == NPERR_NO_ERROR;
}
-bool PluginInstance::GetFormValue(base::string16* value) {
- // Plugins will allocate memory for the return value by using NPN_MemAlloc().
- char *plugin_value = NULL;
- NPError error = NPP_GetValue(NPPVformValue, &plugin_value);
- if (error != NPERR_NO_ERROR || !plugin_value) {
- return false;
- }
- // Assumes the result is UTF8 text, as Firefox does.
- *value = base::UTF8ToUTF16(plugin_value);
- host_->host_functions()->memfree(plugin_value);
- return true;
-}
-
unsigned PluginInstance::GetBackingTextureId() {
// By default the plugin instance is not backed by an OpenGL texture.
return 0;
« no previous file with comments | « content/child/npapi/plugin_instance.h ('k') | content/child/npapi/webplugin_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698