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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 10193001: Revert 133472 - Use bundled Pepper Flash on Windows (Canary, still on a field trial). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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/chrome_common.gypi ('k') | chrome/common/pepper_flash.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_content_client.cc
===================================================================
--- chrome/common/chrome_content_client.cc (revision 133481)
+++ chrome/common/chrome_content_client.cc (working copy)
@@ -17,7 +17,6 @@
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/chrome_version_info.h"
-#include "chrome/common/pepper_flash.h"
#include "chrome/common/render_messages.h"
#include "chrome/common/url_constants.h"
#include "content/public/common/pepper_plugin_info.h"
@@ -30,7 +29,7 @@
#include "webkit/plugins/npapi/plugin_list.h"
#include "webkit/plugins/plugin_constants.h"
-#include "flapper_version.h" // In SHARED_INTERMEDIATE_DIR.
+#include "flapper_version.h" // In <(SHARED_INTERMEDIATE_DIR).
#if defined(OS_WIN)
#include "base/win/registry.h"
@@ -216,15 +215,15 @@
flash_version = CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kPpapiFlashVersion);
} else {
- // Try to use a bundled Pepper Flash if:
- // 1) it's forcibly enabled via the command-line;
+ // Use the bundled Pepper Flash if it's enabled and available.
+ // It's currently only enabled by default on Linux ia32 and x64.
+#if defined(FLAPPER_AVAILABLE) && defined(OS_LINUX) && \
+ (defined(ARCH_CPU_X86) || defined(ARCH_CPU_X86_64))
+ bool bundled_flapper_enabled = true;
+#else
bool bundled_flapper_enabled = CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableBundledPpapiFlash);
- // 2) it's known to be available at build time and enabled by default; and
-#if defined(FLAPPER_AVAILABLE)
- bundled_flapper_enabled |= IsPepperFlashEnabledByDefault();
#endif
- // 3) it's not forcibly disabled via the command-line.
bundled_flapper_enabled &= !CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableBundledPpapiFlash);
if (!bundled_flapper_enabled)
« no previous file with comments | « chrome/chrome_common.gypi ('k') | chrome/common/pepper_flash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698