Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <windows.h> | 5 #include <windows.h> |
| 6 #include <malloc.h> | 6 #include <malloc.h> |
| 7 #include <shellscalingapi.h> | 7 #include <shellscalingapi.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <tchar.h> | 9 #include <tchar.h> |
| 10 | 10 |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 237 | 237 |
| 238 if (AttemptFastNotify(*command_line)) | 238 if (AttemptFastNotify(*command_line)) |
| 239 return 0; | 239 return 0; |
| 240 | 240 |
| 241 RemoveAppCompatFlagsEntry(); | 241 RemoveAppCompatFlagsEntry(); |
| 242 | 242 |
| 243 // Load and launch the chrome dll. *Everything* happens inside. | 243 // Load and launch the chrome dll. *Everything* happens inside. |
| 244 VLOG(1) << "About to load main DLL."; | 244 VLOG(1) << "About to load main DLL."; |
| 245 MainDllLoader* loader = MakeMainDllLoader(); | 245 MainDllLoader* loader = MakeMainDllLoader(); |
| 246 int rc = loader->Launch(instance); | 246 int rc = loader->Launch(instance); |
| 247 loader->RelaunchChromeBrowserWithNewCommandLineIfNeeded(); | 247 if (process_type.empty()) { |
|
grt (UTC plus 2)
2016/09/19 19:59:42
it feels cleaner to me for this function to know a
manzagop (departed)
2016/09/20 19:39:39
Sgtm.
| |
| 248 // Only for the browser process. | |
| 249 loader->RelaunchChromeBrowserWithNewCommandLineIfNeeded(); | |
| 250 } | |
| 248 delete loader; | 251 delete loader; |
| 249 return rc; | 252 return rc; |
| 250 } | 253 } |
| OLD | NEW |