Improve #1317
This commit is contained in:
parent
2505f8b8b2
commit
21a09d3ae8
1 changed files with 7 additions and 8 deletions
|
@ -459,14 +459,13 @@ void NativeWindow::OverrideWebkitPrefs(const GURL& url,
|
||||||
prefs->experimental_webgl_enabled = b;
|
prefs->experimental_webgl_enabled = b;
|
||||||
if (web_preferences_.Get("webaudio", &b))
|
if (web_preferences_.Get("webaudio", &b))
|
||||||
prefs->webaudio_enabled = b;
|
prefs->webaudio_enabled = b;
|
||||||
|
if (web_preferences_.Get("extra-plugin-dirs", &list)) {
|
||||||
auto isSupported = content::PluginService::GetInstance()
|
if (content::PluginService::GetInstance()->NPAPIPluginsSupported()) {
|
||||||
->NPAPIPluginsSupported();
|
for (size_t i = 0; i < list.size(); ++i)
|
||||||
if (web_preferences_.Get("extra-plugin-dirs", &list) && isSupported) {
|
content::PluginService::GetInstance()->AddExtraPluginDir(list[i]);
|
||||||
for (size_t i = 0; i < list.size(); ++i)
|
} else {
|
||||||
content::PluginService::GetInstance()->AddExtraPluginDir(list[i]);
|
LOG(WARNING) << "NPAPI plugins not supported on this platform";
|
||||||
} else {
|
}
|
||||||
LOG(WARNING) << "NPAPI plugins not supported on this platform";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue