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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2103153003: Restrict PPAPI Win32k lockdown to Win10 and above. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 734bd648622910c5b38e8b5d32d85f8c8f7da74b..dc4ff8dbd8d25186158892b338d1ab4449be0fca 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2695,6 +2695,9 @@ bool ChromeContentBrowserClient::PreSpawnRenderer(
bool ChromeContentBrowserClient::IsWin32kLockdownEnabledForMimeType(
const std::string& mime_type) const {
+ // We don't support PPAPI win32k lockdown prior to Windows 10.
+ if (base::win::GetVersion() < base::win::VERSION_WIN10)
+ return false;
// First, check if any variation parameters have enabled or disabled this
// mime type either specifically or globally.
std::map<std::string, std::string> mime_params;
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698