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

Unified Diff: chrome/browser/plugin_service.cc

Issue 2806049: Allow Pepper plugins to make requests with relative urls. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « no previous file | chrome/common/pepper_plugin_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/plugin_service.cc
===================================================================
--- chrome/browser/plugin_service.cc (revision 51504)
+++ chrome/browser/plugin_service.cc (working copy)
@@ -437,7 +437,12 @@
for (size_t i = 0; i < plugins.size(); ++i) {
NPAPI::PluginVersionInfo info;
info.path = plugins[i].path;
- info.product_name = plugins[i].path.BaseName().ToWStringHack();
+ info.product_name = plugins[i].name.empty() ?
+ plugins[i].path.BaseName().ToWStringHack() :
+ ASCIIToWide(plugins[i].name);
+ info.file_description = ASCIIToWide(plugins[i].description);
+ info.file_extensions = ASCIIToWide(plugins[i].file_extensions);
+ info.file_description = ASCIIToWide(plugins[i].type_descriptions);
info.mime_types = ASCIIToWide(JoinString(plugins[i].mime_types, '|'));
// These NPAPI entry points will never be called. TODO(darin): Come up
« no previous file with comments | « no previous file | chrome/common/pepper_plugin_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698