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:
@ -21,8 +21,8 @@
|
||||
#endif
|
||||
#include "webkit/blob/blob_storage_controller.h"
|
||||
#include "webkit/blob/blob_url_request_job.h"
|
||||
#include "webkit/glue/plugins/plugin_list.h"
|
||||
#include "webkit/extensions/v8/gc_extension.h"
|
||||
#include "webkit/plugins/npapi/plugin_list.h"
|
||||
#include "net/url_request/url_request.h"
|
||||
|
||||
#if defined(OS_WIN)
|
||||
@ -130,13 +130,15 @@ void CefProcessUIThread::Init() {
|
||||
|
||||
if (settings.extra_plugin_paths) {
|
||||
cef_string_t str;
|
||||
memset(&str, 0, sizeof(str));
|
||||
|
||||
FilePath path;
|
||||
int size = cef_string_list_size(settings.extra_plugin_paths);
|
||||
for(int i = 0; i < size; ++i) {
|
||||
if (!cef_string_list_value(settings.extra_plugin_paths, i, &str))
|
||||
continue;
|
||||
path = FilePath(CefString(&str));
|
||||
NPAPI::PluginList::Singleton()->AddExtraPluginPath(path);
|
||||
webkit::npapi::PluginList::Singleton()->AddExtraPluginPath(path);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user