| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_frame/chrome_launcher.h" | 5 #include "chrome_frame/chrome_launcher.h" |
| 6 | 6 |
| 7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/path_service.h" | 11 #include "base/path_service.h" |
| 12 #include "chrome/common/chrome_constants.h" | 12 #include "chrome/common/chrome_constants.h" |
| 13 #include "chrome/common/chrome_switches.h" | 13 #include "chrome/common/chrome_switches.h" |
| 14 #include "chrome_frame/chrome_frame_automation.h" | 14 #include "chrome_frame/chrome_frame_automation.h" |
| 15 #include "chrome_frame/crash_report.h" | |
| 16 | 15 |
| 17 namespace chrome_launcher { | 16 namespace chrome_launcher { |
| 18 | 17 |
| 19 const wchar_t kLauncherExeBaseName[] = L"chrome_launcher.exe"; | 18 const wchar_t kLauncherExeBaseName[] = L"chrome_launcher.exe"; |
| 20 | 19 |
| 21 // These are the switches we will allow (along with their values) in the | 20 // These are the switches we will allow (along with their values) in the |
| 22 // safe-for-Low-Integrity version of the Chrome command line. | 21 // safe-for-Low-Integrity version of the Chrome command line. |
| 23 const char* kAllowedSwitches[] = { | 22 const char* kAllowedSwitches[] = { |
| 24 switches::kAutomationClientChannelID, | 23 switches::kAutomationClientChannelID, |
| 25 switches::kDisableMetrics, | 24 switches::kDisableMetrics, |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 return ERROR_OPEN_FAILED; | 116 return ERROR_OPEN_FAILED; |
| 118 } | 117 } |
| 119 } | 118 } |
| 120 | 119 |
| 121 // Compile-time check to see that the type CfLaunchChromeProc is correct. | 120 // Compile-time check to see that the type CfLaunchChromeProc is correct. |
| 122 #ifndef NODEBUG | 121 #ifndef NODEBUG |
| 123 namespace { | 122 namespace { |
| 124 chrome_launcher::CfLaunchChromeProc cf_launch_chrome = CfLaunchChrome; | 123 chrome_launcher::CfLaunchChromeProc cf_launch_chrome = CfLaunchChrome; |
| 125 } // namespace | 124 } // namespace |
| 126 #endif // NODEBUG | 125 #endif // NODEBUG |
| OLD | NEW |