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

Unified Diff: chrome/common/chrome_content_client.cc

Issue 2544133002: Add flags entries to test chrome OS component updates in release mode. (Closed)
Patch Set: Created 4 years 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
Index: chrome/common/chrome_content_client.cc
diff --git a/chrome/common/chrome_content_client.cc b/chrome/common/chrome_content_client.cc
index 20ba8876bd79e7d9d3672156011d40499d53f9f0..e3e7825de940b17bc22f906597bc18c1c462a1a8 100644
--- a/chrome/common/chrome_content_client.cc
+++ b/chrome/common/chrome_content_client.cc
@@ -26,6 +26,7 @@
#include "build/build_config.h"
#include "chrome/common/child_process_logging.h"
#include "chrome/common/chrome_constants.h"
+#include "chrome/common/chrome_features.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/crash_keys.h"
@@ -499,6 +500,18 @@ void ChromeContentClient::AddPepperPlugins(
if (!sandbox::Credentials::HasFileSystemAccess())
return;
+#if defined(OS_CHROMEOS)
+ // On Chrome OS, we cannot test component flash updates reliably unless we
+ // guarantee that the component updated flash plugin will be used.
+ if (base::FeatureList::IsEnabled(features::kComponentFlashOnly)) {
+ auto component_flash = base::MakeUnique<content::PepperPluginInfo>();
+ if (GetComponentUpdatedPepperFlash(component_flash.get())) {
+ plugins->push_back(*component_flash);
+ }
+ return;
waffles 2016/12/01 23:51:18 I think it might be cleaner to instead do somethin
Greg K 2016/12/02 01:06:26 I think you're right. The override is less obvious
+ }
+#endif // defined(OS_CHROMEOS)
+
auto component_flash = base::MakeUnique<content::PepperPluginInfo>();
if (GetComponentUpdatedPepperFlash(component_flash.get()))
flash_versions.push_back(std::move(component_flash));
« no previous file with comments | « chrome/browser/component_updater/pepper_flash_component_installer.cc ('k') | chrome/common/chrome_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698