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

Side by Side Diff: chrome/app/chrome_main_delegate.cc

Issue 17198013: Don't use PathService for the location of nacl_helper and nacl_helper_bootstrap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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
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/app/chrome_main_delegate.h" 5 #include "chrome/app/chrome_main_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/metrics/stats_counters.h" 10 #include "base/metrics/stats_counters.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 #include "chrome/common/mac/objc_zombie.h" 55 #include "chrome/common/mac/objc_zombie.h"
56 #include "grit/chromium_strings.h" 56 #include "grit/chromium_strings.h"
57 #include "ui/base/l10n/l10n_util_mac.h" 57 #include "ui/base/l10n/l10n_util_mac.h"
58 #endif 58 #endif
59 59
60 #if defined(OS_POSIX) 60 #if defined(OS_POSIX)
61 #include <locale.h> 61 #include <locale.h>
62 #include <signal.h> 62 #include <signal.h>
63 #endif 63 #endif
64 64
65 #if !defined(DISABLE_NACL)
65 #if defined(OS_POSIX) && !defined(OS_MACOSX) 66 #if defined(OS_POSIX) && !defined(OS_MACOSX)
66 #include "chrome/app/nacl_fork_delegate_linux.h" 67 #include "chrome/app/nacl_fork_delegate_linux.h"
68 #include "chrome/common/nacl_paths.h"
67 #endif 69 #endif
70 #endif // !defined(DISABLE_NACL)
68 71
69 #if defined(OS_CHROMEOS) 72 #if defined(OS_CHROMEOS)
70 #include "base/sys_info.h" 73 #include "base/sys_info.h"
71 #include "chrome/browser/chromeos/boot_times_loader.h" 74 #include "chrome/browser/chromeos/boot_times_loader.h"
72 #include "chromeos/chromeos_paths.h" 75 #include "chromeos/chromeos_paths.h"
73 #endif 76 #endif
74 77
75 #if defined(OS_ANDROID) 78 #if defined(OS_ANDROID)
76 #include "chrome/common/descriptors_android.h" 79 #include "chrome/common/descriptors_android.h"
77 #endif 80 #endif
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 470
468 void ChromeMainDelegate::PreSandboxStartup() { 471 void ChromeMainDelegate::PreSandboxStartup() {
469 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 472 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
470 std::string process_type = 473 std::string process_type =
471 command_line.GetSwitchValueASCII(switches::kProcessType); 474 command_line.GetSwitchValueASCII(switches::kProcessType);
472 475
473 chrome::RegisterPathProvider(); 476 chrome::RegisterPathProvider();
474 #if defined(OS_CHROMEOS) 477 #if defined(OS_CHROMEOS)
475 chromeos::RegisterPathProvider(); 478 chromeos::RegisterPathProvider();
476 #endif 479 #endif
480 #if !defined(DISABLE_NACL)
481 #if defined(OS_POSIX) && !defined(OS_MACOSX)
Mark Seaborn 2013/06/21 13:53:26 This can be #if !defined(DISABLE_NACL) && defined(
482 nacl::RegisterPathProvider();
483 #endif
484 #endif // !defined(DISABLE_NACL)
477 485
478 #if defined(OS_MACOSX) 486 #if defined(OS_MACOSX)
479 // On the Mac, the child executable lives at a predefined location within 487 // On the Mac, the child executable lives at a predefined location within
480 // the app bundle's versioned directory. 488 // the app bundle's versioned directory.
481 PathService::Override(content::CHILD_PROCESS_EXE, 489 PathService::Override(content::CHILD_PROCESS_EXE,
482 chrome::GetVersionedDirectory(). 490 chrome::GetVersionedDirectory().
483 Append(chrome::kHelperProcessExecutablePath)); 491 Append(chrome::kHelperProcessExecutablePath));
484 492
485 InitMacCrashReporter(command_line, process_type); 493 InitMacCrashReporter(command_line, process_type);
486 #endif 494 #endif
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 721
714 content::ContentRendererClient* 722 content::ContentRendererClient*
715 ChromeMainDelegate::CreateContentRendererClient() { 723 ChromeMainDelegate::CreateContentRendererClient() {
716 return &g_chrome_content_renderer_client.Get(); 724 return &g_chrome_content_renderer_client.Get();
717 } 725 }
718 726
719 content::ContentUtilityClient* 727 content::ContentUtilityClient*
720 ChromeMainDelegate::CreateContentUtilityClient() { 728 ChromeMainDelegate::CreateContentUtilityClient() {
721 return &g_chrome_content_utility_client.Get(); 729 return &g_chrome_content_utility_client.Get();
722 } 730 }
OLDNEW
« no previous file with comments | « no previous file | chrome/app/nacl_fork_delegate_linux.cc » ('j') | chrome/app/nacl_fork_delegate_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698