mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Update to Chromium revision 70742.
- Fix crash when calling CefInitialize with extra_plugins_paths specified (issue #164). git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@159 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -14,7 +14,7 @@ MSVC_POP_WARNING();
|
||||
#undef LOG
|
||||
#include "base/string_util.h"
|
||||
#include "net/base/mime_util.h"
|
||||
#include "webkit/glue/plugins/plugin_list.h"
|
||||
#include "webkit/plugins/npapi/plugin_list.h"
|
||||
|
||||
#include "browser_webkit_glue.h"
|
||||
|
||||
@@ -64,8 +64,9 @@ bool GetPluginFinderURL(std::string* plugin_finder_url) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void GetPlugins(bool refresh, std::vector<WebPluginInfo>* plugins) {
|
||||
NPAPI::PluginList::Singleton()->GetPlugins(refresh, plugins);
|
||||
void GetPlugins(bool refresh,
|
||||
std::vector<webkit::npapi::WebPluginInfo>* plugins) {
|
||||
webkit::npapi::PluginList::Singleton()->GetPlugins(refresh, plugins);
|
||||
}
|
||||
|
||||
bool IsDefaultPluginEnabled() {
|
||||
@@ -181,9 +182,9 @@ bool ShouldDownload(const std::string& content_disposition,
|
||||
return false;
|
||||
|
||||
//// Finally, check the plugin list.
|
||||
WebPluginInfo info;
|
||||
webkit::npapi::WebPluginInfo info;
|
||||
bool allow_wildcard = false;
|
||||
return !NPAPI::PluginList::Singleton()->GetPluginInfo(
|
||||
return !webkit::npapi::PluginList::Singleton()->GetPluginInfo(
|
||||
GURL(), type, allow_wildcard, &info, NULL) || !info.enabled;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user