| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "build/build_config.h" | 5 #include "build/build_config.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include "app/win_util.h" | 8 #include "app/win_util.h" |
| 9 #endif | 9 #endif |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 win_util::MessageBox(NULL, L"plugin starting...", title, | 67 win_util::MessageBox(NULL, L"plugin starting...", title, |
| 68 MB_OK | MB_SETFOREGROUND); | 68 MB_OK | MB_SETFOREGROUND); |
| 69 #elif defined(OS_MACOSX) | 69 #elif defined(OS_MACOSX) |
| 70 // TODO(playmobil): In the long term, overriding this flag doesn't seem | 70 // TODO(playmobil): In the long term, overriding this flag doesn't seem |
| 71 // right, either use our own flag or open a dialog we can use. | 71 // right, either use our own flag or open a dialog we can use. |
| 72 // This is just to ease debugging in the interim. | 72 // This is just to ease debugging in the interim. |
| 73 LOG(WARNING) << "Plugin (" | 73 LOG(WARNING) << "Plugin (" |
| 74 << getpid() | 74 << getpid() |
| 75 << ") paused waiting for debugger to attach @ pid"; | 75 << ") paused waiting for debugger to attach @ pid"; |
| 76 pause(); | 76 pause(); |
| 77 #else | 77 #elif defined(OS_LINUX) |
| 78 NOTIMPLEMENTED() << " non-windows startup, plugin startup dialog etc."; | 78 LOG(WARNING) << "Plugin (" |
| 79 << getpid() |
| 80 << ") paused waiting for debugger to attach."; |
| 81 volatile bool paused = true; |
| 82 while (paused) ; |
| 79 #endif | 83 #endif |
| 80 } | 84 } |
| 81 | 85 |
| 82 { | 86 { |
| 83 ChildProcess plugin_process(new PluginThread()); | 87 ChildProcess plugin_process(new PluginThread()); |
| 84 #if defined(OS_WIN) | 88 #if defined(OS_WIN) |
| 85 if (!no_sandbox && target_services) | 89 if (!no_sandbox && target_services) |
| 86 target_services->LowerToken(); | 90 target_services->LowerToken(); |
| 87 | 91 |
| 88 if (sandbox_test_module) { | 92 if (sandbox_test_module) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 104 | 108 |
| 105 MessageLoop::current()->Run(); | 109 MessageLoop::current()->Run(); |
| 106 } | 110 } |
| 107 | 111 |
| 108 #if defined(OS_WIN) | 112 #if defined(OS_WIN) |
| 109 CoUninitialize(); | 113 CoUninitialize(); |
| 110 #endif | 114 #endif |
| 111 | 115 |
| 112 return 0; | 116 return 0; |
| 113 } | 117 } |
| OLD | NEW |