OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_watcher_command_line_win.h" | 5 #include "chrome/app/chrome_watcher_command_line_win.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/stringprintf.h" | |
16 #include "base/win/win_util.h" | 15 #include "base/win/win_util.h" |
17 #include "chrome/common/chrome_switches.h" | 16 #include "chrome/common/chrome_switches.h" |
18 #include "content/public/common/content_switches.h" | 17 #include "content/public/common/content_switches.h" |
19 | 18 |
20 namespace { | 19 namespace { |
21 | 20 |
22 const char kMainThreadIdSwitch[] = "main-thread-id"; | 21 const char kMainThreadIdSwitch[] = "main-thread-id"; |
23 const char kOnIninitializedEventHandleSwitch[] = "on-initialized-event-handle"; | 22 const char kOnIninitializedEventHandleSwitch[] = "on-initialized-event-handle"; |
24 const char kParentHandleSwitch[] = "parent-handle"; | 23 const char kParentHandleSwitch[] = "parent-handle"; |
25 | 24 |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 !parent_process->IsValid()) { | 209 !parent_process->IsValid()) { |
211 // If one was valid and not the other, free the valid one. | 210 // If one was valid and not the other, free the valid one. |
212 on_initialized_event->Close(); | 211 on_initialized_event->Close(); |
213 parent_process->Close(); | 212 parent_process->Close(); |
214 *main_thread_id = 0; | 213 *main_thread_id = 0; |
215 return false; | 214 return false; |
216 } | 215 } |
217 | 216 |
218 return true; | 217 return true; |
219 } | 218 } |
OLD | NEW |