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

Unified Diff: content/common/content_switches_internal.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: code review changes 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
« no previous file with comments | « content/common/content_switches_internal.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/content_switches_internal.cc
diff --git a/content/common/content_switches_internal.cc b/content/common/content_switches_internal.cc
index d18540f88cc9d65b0dc0bbe6d6a4a48863b4ad2c..f496c504f5986d43d23cb300353bbd900dcd19f2 100644
--- a/content/common/content_switches_internal.cc
+++ b/content/common/content_switches_internal.cc
@@ -12,7 +12,6 @@
#include "content/public/common/content_switches.h"
#if defined(OS_WIN)
-#include "base/strings/string_tokenizer.h"
#include "base/win/windows_version.h"
#include "ui/gfx/win/direct_write.h"
#endif
@@ -64,32 +63,6 @@ bool IsWin32kRendererLockdownEnabled() {
return true;
}
-bool IsWin32kLockdownEnabledForMimeType(const std::string& mime_type) {
- // Consider PPAPI lockdown a superset of renderer lockdown.
- if (!IsWin32kRendererLockdownEnabled())
- return false;
- const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
-
- std::string mime_types =
- base::FieldTrialList::FindFullName("EnableWin32kLockDownMimeTypes");
- if (cmd_line->HasSwitch(switches::kEnableWin32kLockDownMimeTypes)) {
- mime_types =
- cmd_line->GetSwitchValueASCII(switches::kEnableWin32kLockDownMimeTypes);
- }
-
- // Consider the value * to enable all mime types for lockdown.
- if (mime_types == "*")
- return true;
-
- base::StringTokenizer tokenizer(mime_types, ",");
- tokenizer.set_quote_chars("\"");
- while (tokenizer.GetNext()) {
- if (tokenizer.token() == mime_type)
- return true;
- }
-
- return false;
-}
#endif
V8CacheOptions GetV8CacheOptions() {
« no previous file with comments | « content/common/content_switches_internal.h ('k') | content/public/browser/content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698