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

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: 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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 #else 137 #else
138 #include "chrome/browser/feedback/feedback_profile_observer.h" 138 #include "chrome/browser/feedback/feedback_profile_observer.h"
139 #endif 139 #endif
140 140
141 #if defined(OS_LINUX) && !defined(OS_CHROMEOS) 141 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
142 #include "chrome/browser/first_run/upgrade_util_linux.h" 142 #include "chrome/browser/first_run/upgrade_util_linux.h"
143 #include "chrome/browser/sxs_linux.h" 143 #include "chrome/browser/sxs_linux.h"
144 #endif 144 #endif
145 145
146 #if defined(OS_CHROMEOS) 146 #if defined(OS_CHROMEOS)
147 #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!
147 #include "chrome/browser/chromeos/settings/cros_settings.h" 148 #include "chrome/browser/chromeos/settings/cros_settings.h"
148 #include "chromeos/chromeos_switches.h" 149 #include "chromeos/chromeos_switches.h"
149 #include "chromeos/settings/cros_settings_names.h" 150 #include "chromeos/settings/cros_settings_names.h"
150 #endif 151 #endif
151 152
152 // TODO(port): several win-only methods have been pulled out of this, but 153 // TODO(port): several win-only methods have been pulled out of this, but
153 // BrowserMain() as a whole needs to be broken apart so that it's usable by 154 // BrowserMain() as a whole needs to be broken apart so that it's usable by
154 // other platforms. For now, it's just a stub. This is a serious work in 155 // other platforms. For now, it's just a stub. This is a serious work in
155 // progress and should not be taken as an indication of a real refactoring. 156 // progress and should not be taken as an indication of a real refactoring.
156 157
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 g_browser_process->component_updater(); 396 g_browser_process->component_updater();
396 397
397 // Registration can be before or after cus->Start() so it is ok to post 398 // 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 399 // a task to the UI thread to do registration once you done the necessary
399 // file IO to know you existing component version. 400 // file IO to know you existing component version.
400 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID) 401 #if !defined(OS_CHROMEOS) && !defined(OS_ANDROID)
401 RegisterRecoveryComponent(cus, g_browser_process->local_state()); 402 RegisterRecoveryComponent(cus, g_browser_process->local_state());
402 RegisterPepperFlashComponent(cus); 403 RegisterPepperFlashComponent(cus);
403 RegisterSwiftShaderComponent(cus); 404 RegisterSwiftShaderComponent(cus);
404 RegisterWidevineCdmComponent(cus); 405 RegisterWidevineCdmComponent(cus);
405 #if !defined(DISABLE_NACL)
406 g_browser_process->pnacl_component_installer()->RegisterPnaclComponent(cus);
407 #endif 406 #endif
407
408 #if !defined(DISABLE_NACL) && !defined(OS_ANDROID)
409 #if defined(OS_CHROMEOS)
410 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.
411 #endif
412 g_browser_process->pnacl_component_installer()->RegisterPnaclComponent(cus);
408 #endif 413 #endif
409 414
410 if (translate::CldDataSource::ShouldRegisterForComponentUpdates()) { 415 if (translate::CldDataSource::ShouldRegisterForComponentUpdates()) {
411 RegisterCldComponent(cus); 416 RegisterCldComponent(cus);
412 } 417 }
413 418
414 base::FilePath path; 419 base::FilePath path;
415 if (PathService::Get(chrome::DIR_USER_DATA, &path)) { 420 if (PathService::Get(chrome::DIR_USER_DATA, &path)) {
416 #if defined(OS_ANDROID) 421 #if defined(OS_ANDROID)
417 // The CRLSet component was enabled for some releases. This code attempts to 422 // 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(); 1681 chromeos::CrosSettings::Shutdown();
1677 #endif 1682 #endif
1678 #endif 1683 #endif
1679 } 1684 }
1680 1685
1681 // Public members: 1686 // Public members:
1682 1687
1683 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) { 1688 void ChromeBrowserMainParts::AddParts(ChromeBrowserMainExtraParts* parts) {
1684 chrome_extra_parts_.push_back(parts); 1689 chrome_extra_parts_.push_back(parts);
1685 } 1690 }
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