summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-12 00:39:18 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-12 00:39:18 +0000
commit449678864a0326d07ed1ea3f91de8044abd5a7a9 (patch)
tree25b67ffac8071079289483e32df032651630f85d /chrome/common
parent5425d069ab8c48bb28cda2cd7b746ae5e8443605 (diff)
downloadchromium_src-449678864a0326d07ed1ea3f91de8044abd5a7a9.zip
chromium_src-449678864a0326d07ed1ea3f91de8044abd5a7a9.tar.gz
chromium_src-449678864a0326d07ed1ea3f91de8044abd5a7a9.tar.bz2
Turn on internal Flash Player by default.
BUG=none TEST=Run a branded Google Chrome (without any command-line flags); check about:plugins to make sure it picks up the internal Flash. Run it with --disable-internal-flash; check about:plugins to make sure it doesn't pick up the internal Flash. Review URL: http://codereview.chromium.org/1564025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44223 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/chrome_plugin_lib.cc5
-rw-r--r--chrome/common/chrome_switches.cc10
-rw-r--r--chrome/common/chrome_switches.h2
3 files changed, 8 insertions, 9 deletions
diff --git a/chrome/common/chrome_plugin_lib.cc b/chrome/common/chrome_plugin_lib.cc
index ceb4e54..e9d0224 100644
--- a/chrome/common/chrome_plugin_lib.cc
+++ b/chrome/common/chrome_plugin_lib.cc
@@ -117,9 +117,8 @@ void ChromePluginLib::RegisterPluginsWithNPAPI() {
NPAPI::PluginList::Singleton()->AddExtraPluginPath(path);
// Register the internal Flash, if available.
- // TODO(viettrungluu): The command-line switch is temporary.
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableInternalFlash) &&
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableInternalFlash) &&
PathService::Get(chrome::FILE_FLASH_PLUGIN, &path))
NPAPI::PluginList::Singleton()->AddExtraPluginPath(path);
}
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index e057147..260df1b 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -114,11 +114,14 @@ const char kDisableDevTools[] = "disable-dev-tools";
const char kDisableExtensions[] = "disable-extensions";
// Suppresses support for the Geolocation javascript API.
-const char kDisableGeolocation[] = "disable-geolocation";
+const char kDisableGeolocation[] = "disable-geolocation";
// Suppresses hang monitor dialogs in renderer processes.
const char kDisableHangMonitor[] = "disable-hang-monitor";
+// Disable the internal Flash Player.
+const char kDisableInternalFlash[] = "disable-internal-flash";
+
// Don't resolve hostnames to IPv6 addresses. This can be used when debugging
// issues relating to IPv6, but shouldn't otherwise be needed. Be sure to
// file bugs if something isn't working properly in the presence of IPv6.
@@ -132,7 +135,7 @@ const char kDisableJavaScript[] = "disable-javascript";
const char kDisableJava[] = "disable-java";
// Disable LocalStorage.
-const char kDisableLocalStorage[] = "disable-local-storage";
+const char kDisableLocalStorage[] = "disable-local-storage";
// Force logging to be disabled. Logging is enabled by default in debug
// builds.
@@ -253,9 +256,6 @@ const char kEnableFileCookies[] = "enable-file-cookies";
// Enable the Indexed Database API.
const char kEnableIndexedDatabase[] = "enable-indexed-database";
-// Enable the internal Flash Player (if available).
-const char kEnableInternalFlash[] = "enable-internal-flash";
-
// Enable IPv6 support, even if probes suggest that it may not be fully
// supported. Some probes may require internet connections, and this flag will
// allow support independent of application testing.
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 62f2ead..3b541b9 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -49,6 +49,7 @@ extern const char kDisableDevTools[];
extern const char kDisableExtensions[];
extern const char kDisableGeolocation[];
extern const char kDisableHangMonitor[];
+extern const char kDisableInternalFlash[];
extern const char kDisableIPv6[];
extern const char kDisableJavaScript[];
extern const char kDisableJava[];
@@ -90,7 +91,6 @@ extern const char kEnableFileCookies[];
extern const char kEnableGPUPlugin[];
extern const char kEnableGPURendering[];
extern const char kEnableIndexedDatabase[];
-extern const char kEnableInternalFlash[];
extern const char kEnableIPv6[];
extern const char kEnableLogging[];
extern const char kEnableMonitorProfile[];