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

Unified Diff: content/browser/ppapi_plugin_process_host.cc

Issue 1609133002: Change Win32k PPAPI lockdown to use finch params for mime type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delegate via content browser client Created 4 years, 11 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
Index: content/browser/ppapi_plugin_process_host.cc
diff --git a/content/browser/ppapi_plugin_process_host.cc b/content/browser/ppapi_plugin_process_host.cc
index 766a71390626c82162264baea8000721580708f6..ff3422fdc853f223300237160e2e5e395a9060c6 100644
--- a/content/browser/ppapi_plugin_process_host.cc
+++ b/content/browser/ppapi_plugin_process_host.cc
@@ -90,11 +90,14 @@ class PpapiPluginSandboxedProcessLauncherDelegate
return false;
#if !defined(NACL_WIN64)
- for (const auto& mime_type : info_.mime_types) {
- if (IsWin32kLockdownEnabledForMimeType(mime_type.mime_type)) {
- if (!AddWin32kLockdownPolicy(policy))
- return false;
- break;
+ if (IsWin32kRendererLockdownEnabled()) {
+ for (const auto& mime_type : info_.mime_types) {
+ if (GetContentClient()->browser()->IsWin32kLockdownEnabledForMimeType(
Alexei Svitkine (slow) 2016/01/26 08:23:40 Nit: Store the result of GetContentClient()->brows
jam 2016/01/26 15:18:51 given that the list of mime types should be pretty
Will Harris 2016/01/26 22:57:54 GetContentClient() does seem to do a CALL and it's
+ mime_type.mime_type)) {
+ if (!AddWin32kLockdownPolicy(policy))
+ return false;
+ break;
+ }
}
}
#endif

Powered by Google App Engine
This is Rietveld 408576698