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

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: 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..d20f5307391c83f78a4aaa8246cdee27e2b76812 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -144,6 +144,7 @@
#endif
#if defined(OS_CHROMEOS)
+#include "base/sys_info.h"
jvoung (off chromium) 2014/10/17 16:55:47 I think sys_info is already included above, so thi
Dmitry Polukhin 2014/10/20 07:14:23 Good catch, thank you!
#include "chrome/browser/chromeos/settings/cros_settings.h"
#include "chromeos/chromeos_switches.h"
#include "chromeos/settings/cros_settings_names.h"
@@ -402,9 +403,13 @@ 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)
+ if (!base::SysInfo::IsRunningOnChromeOS())
jvoung (off chromium) 2014/10/17 16:55:47 Maybe leave a comment that on ChromeOS it's part o
Lei Zhang 2014/10/17 21:59:55 A comment would be good. Otherwise it's not obviou
Dmitry Polukhin 2014/10/20 07:14:22 Done.
+#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