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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 662713006: Make PNaCl component downloadable for chromeos-chrome built for Linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: added comment 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index b509e20670fb4fb623f76565cb0a90dbb08056be..cd0f028c0d3c3f961f6a7168a02013ed48f58c92 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -402,9 +402,16 @@ void RegisterComponentsForUpdate() {
RegisterPepperFlashComponent(cus);
RegisterSwiftShaderComponent(cus);
RegisterWidevineCdmComponent(cus);
-#if !defined(DISABLE_NACL)
- g_browser_process->pnacl_component_installer()->RegisterPnaclComponent(cus);
#endif
+
+#if !defined(DISABLE_NACL) && !defined(OS_ANDROID)
+#if defined(OS_CHROMEOS)
+ // PNaCl on Chrome OS is on rootfs and there is no need to download it. But
+ // Chrome4ChromeOS on Linux doesn't contain PNaCl so enable component
+ // installer when ruining on Linux. See crbug.com/422121 for more details.
+ if (!base::SysInfo::IsRunningOnChromeOS())
+#endif
+ g_browser_process->pnacl_component_installer()->RegisterPnaclComponent(cus);
#endif
if (translate::CldDataSource::ShouldRegisterForComponentUpdates()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698