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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chrome_browser_main.h" 5 #include "chrome/browser/chrome_browser_main.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 g_browser_process->component_updater(); 395 g_browser_process->component_updater();
396 396
397 // Registration can be before or after cus->Start() so it is ok to post 397 // Registration can be before or after cus->Start() so it is ok to post
398 // a task to the UI thread to do registration once you done the necessary 398 // a task to the UI thread to do registration once you done the necessary
399 // file IO to know you existing component version. 399 // file IO to know you existing component version.
400 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 400 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
401 RegisterRecoveryComponent(cus, g_browser_process->local_state()); 401 RegisterRecoveryComponent(cus, g_browser_process->local_state());
402 RegisterPepperFlashComponent(cus); 402 RegisterPepperFlashComponent(cus);
403 RegisterSwiftShaderComponent(cus); 403 RegisterSwiftShaderComponent(cus);
404 RegisterWidevineCdmComponent(cus); 404 RegisterWidevineCdmComponent(cus);
405 #if !defined(DISABLE_NACL)
406 g_browser_process->pnacl_component_installer()->RegisterPnaclComponent(cus);
407 #endif 405 #endif
406
407 #if !defined(DISABLE_NACL) && !defined(OS_ANDROID)
408 #if defined(OS_CHROMEOS)
409 // PNaCl on Chrome OS is on rootfs and there is no need to download it. But
410 // Chrome4ChromeOS on Linux doesn't contain PNaCl so enable component
411 // installer when ruining on Linux. See crbug.com/422121 for more details.
412 if (!base::SysInfo::IsRunningOnChromeOS())
413 #endif
414 g_browser_process->pnacl_component_installer()->RegisterPnaclComponent(cus);
408 #endif 415 #endif
409 416
410 if (translate::CldDataSource::ShouldRegisterForComponentUpdates()) { 417 if (translate::CldDataSource::ShouldRegisterForComponentUpdates()) {
411 RegisterCldComponent(cus); 418 RegisterCldComponent(cus);
412 } 419 }
413 420
414 base::FilePath path; 421 base::FilePath path;
415 if (PathService::Get(chrome::DIR_USER_DATA, &path)) { 422 if (PathService::Get(chrome::DIR_USER_DATA, &path)) {
416 #if defined(OS_ANDROID) 423 #if defined(OS_ANDROID)
417 // The CRLSet component was enabled for some releases. This code attempts to 424 // The CRLSet component was enabled for some releases. This code attempts to
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after
1676 chromeos::CrosSettings::Shutdown(); 1683 chromeos::CrosSettings::Shutdown();
1677 #endif 1684 #endif
1678 #endif 1685 #endif
1679 } 1686 }
1680 1687
1681 // Public members: 1688 // Public members:
1682 1689
1683 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 1690 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
1684 chrome_extra_parts_.push_back(parts); 1691 chrome_extra_parts_.push_back(parts);
1685 } 1692 }
OLDNEW
« 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