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

Side by Side Diff: content/public/common/content_switches.cc

Issue 645203002: Block NPAPI plugins by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reorder initializers for clang Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 938 matching lines...) Expand 10 before | Expand all | Expand 10 after
949 // Disable the Legacy Window which corresponds to the size of the WebContents. 949 // Disable the Legacy Window which corresponds to the size of the WebContents.
950 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window"; 950 const char kDisableLegacyIntermediateWindow[] = "disable-legacy-window";
951 951
952 // Enable the Win32K process mitigation policy for renderer processes which 952 // Enable the Win32K process mitigation policy for renderer processes which
953 // prevents them from invoking user32 and gdi32 system calls which enter 953 // prevents them from invoking user32 and gdi32 system calls which enter
954 // the kernel. This is only supported on Windows 8 and beyond. 954 // the kernel. This is only supported on Windows 8 and beyond.
955 const char kEnableWin32kRendererLockDown[] 955 const char kEnableWin32kRendererLockDown[]
956 = "enable_win32k_renderer_lockdown"; 956 = "enable_win32k_renderer_lockdown";
957 #endif 957 #endif
958 958
959 #if defined(OS_WIN) || defined(OS_MACOSX)
jam 2014/10/20 15:50:32 can we just leave this for all to get rid of ifdef
Will Harris 2014/10/20 17:59:56 Done.
960 // Enables the use of NPAPI plugins.
961 const char kEnableNpapi[] = "enable-npapi";
962 #endif
963
959 #if defined(ENABLE_PLUGINS) 964 #if defined(ENABLE_PLUGINS)
960 // Enables the plugin power saver feature. 965 // Enables the plugin power saver feature.
961 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver"; 966 const char kEnablePluginPowerSaver[] = "enable-plugin-power-saver";
962 #endif 967 #endif
963 968
964 // Don't dump stuff here, follow the same order as the header. 969 // Don't dump stuff here, follow the same order as the header.
965 970
966 } // namespace switches 971 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698