| OLD | NEW |
| 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 "content/shell/shell_main_delegate.h" | 5 #include "content/shell/shell_main_delegate.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "content/public/common/content_switches.h" | 10 #include "content/public/common/content_switches.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 InitializeResourceBundle(); | 37 InitializeResourceBundle(); |
| 38 } | 38 } |
| 39 | 39 |
| 40 void ShellMainDelegate::SandboxInitialized(const std::string& process_type) { | 40 void ShellMainDelegate::SandboxInitialized(const std::string& process_type) { |
| 41 } | 41 } |
| 42 | 42 |
| 43 int ShellMainDelegate::RunProcess( | 43 int ShellMainDelegate::RunProcess( |
| 44 const std::string& process_type, | 44 const std::string& process_type, |
| 45 const content::MainFunctionParams& main_function_params) { | 45 const content::MainFunctionParams& main_function_params) { |
| 46 NOTREACHED(); | |
| 47 return -1; | 46 return -1; |
| 48 } | 47 } |
| 49 | 48 |
| 50 void ShellMainDelegate::ProcessExiting(const std::string& process_type) { | 49 void ShellMainDelegate::ProcessExiting(const std::string& process_type) { |
| 51 } | 50 } |
| 52 | 51 |
| 53 #if defined(OS_MACOSX) | 52 #if defined(OS_MACOSX) |
| 54 bool ShellMainDelegate::ProcessRegistersWithSystemProcess( | 53 bool ShellMainDelegate::ProcessRegistersWithSystemProcess( |
| 55 const std::string& process_type) { | 54 const std::string& process_type) { |
| 56 return false; | 55 return false; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 94 } |
| 96 } | 95 } |
| 97 | 96 |
| 98 void ShellMainDelegate::InitializeResourceBundle() { | 97 void ShellMainDelegate::InitializeResourceBundle() { |
| 99 FilePath pak_dir; | 98 FilePath pak_dir; |
| 100 PathService::Get(base::DIR_MODULE, &pak_dir); | 99 PathService::Get(base::DIR_MODULE, &pak_dir); |
| 101 | 100 |
| 102 FilePath pak_file = pak_dir.Append(FILE_PATH_LITERAL("content_shell.pak")); | 101 FilePath pak_file = pak_dir.Append(FILE_PATH_LITERAL("content_shell.pak")); |
| 103 ui::ResourceBundle::InitSharedInstanceWithPakFile(pak_file); | 102 ui::ResourceBundle::InitSharedInstanceWithPakFile(pak_file); |
| 104 } | 103 } |
| OLD | NEW |