diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-01 19:07:57 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-01 19:07:57 +0000 |
commit | 32772e96d7fb129119a540947704f1d39500ee98 (patch) | |
tree | 991e4289bbd06a84c3c9dc5785809ec8ed136ae0 /chrome | |
parent | 8430491a1e7e0393e7bf4cff9877af3d48d9664a (diff) | |
download | chromium_src-32772e96d7fb129119a540947704f1d39500ee98.zip chromium_src-32772e96d7fb129119a540947704f1d39500ee98.tar.gz chromium_src-32772e96d7fb129119a540947704f1d39500ee98.tar.bz2 |
Enable Flapper by default with USE_AURA.
BUG=none
TEST=visit a website with flash.
Review URL: http://codereview.chromium.org/8431009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108146 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/component_updater/pepper_flash_component_installer.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/chrome/browser/component_updater/pepper_flash_component_installer.cc b/chrome/browser/component_updater/pepper_flash_component_installer.cc index e17a347..e2b17aa 100644 --- a/chrome/browser/component_updater/pepper_flash_component_installer.cc +++ b/chrome/browser/component_updater/pepper_flash_component_installer.cc @@ -75,6 +75,13 @@ const FilePath::CharType kPepperFlashBaseDirectory[] = // If we don't have a Pepper Flash component, this is the version we claim. const char kNullVersion[] = "0.0.0.0"; +// True if Pepper Flash should be enabled by default. +#if defined(USE_AURA) +const bool kEnablePepperFlash = true; +#else +const bool kEnablePepperFlash = false; +#endif + // The base directory on Windows looks like: // <profile>\AppData\Local\Google\Chrome\User Data\PepperFlash\. FilePath GetPepperFlashBaseDirectory() { @@ -157,7 +164,7 @@ void RegisterPepperFlashWithChrome(const FilePath& path, // Register it as out-of-process and disabled. if (!MakePepperFlashPluginInfo(path, version, true, &plugin_info)) return; - PluginPrefs::EnablePluginGlobally(false, plugin_info.path); + PluginPrefs::EnablePluginGlobally(kEnablePepperFlash, plugin_info.path); webkit::npapi::PluginList::Singleton()->RegisterInternalPlugin( plugin_info.ToWebPluginInfo()); webkit::npapi::PluginList::Singleton()->RefreshPlugins(); @@ -312,8 +319,8 @@ void StartPepperFlashUpdateRegistration(ComponentUpdateService* cus) { } // namespace void RegisterPepperFlashComponent(ComponentUpdateService* cus) { -#if defined(GOOGLE_CHROME_BUILD) +//#if defined(GOOGLE_CHROME_BUILD) BrowserThread::PostTask(BrowserThread::FILE, FROM_HERE, NewRunnableFunction(&StartPepperFlashUpdateRegistration, cus)); -#endif +//#endif } |