diff options
author | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 01:43:56 +0000 |
---|---|---|
committer | atwilson@chromium.org <atwilson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-06 01:43:56 +0000 |
commit | cd60f084650684bb407f237bde2f7156b9f75aca (patch) | |
tree | 8dfe29aeefde03908ff1ab894ea220ed89812b4b /chrome/plugin/plugin_main.cc | |
parent | 2858d5406a254a1dba769b112ca86951f0ec9361 (diff) | |
download | chromium_src-cd60f084650684bb407f237bde2f7156b9f75aca.zip chromium_src-cd60f084650684bb407f237bde2f7156b9f75aca.tar.gz chromium_src-cd60f084650684bb407f237bde2f7156b9f75aca.tar.bz2 |
Added support for --worker-startup-dialog command line flag.
Added ChildProcess::WaitForDebugger() utility routine, and changed the various
processes to use it.
Review URL: http://codereview.chromium.org/370006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31188 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/plugin/plugin_main.cc')
-rw-r--r-- | chrome/plugin/plugin_main.cc | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/chrome/plugin/plugin_main.cc b/chrome/plugin/plugin_main.cc index f77767e..b051501 100644 --- a/chrome/plugin/plugin_main.cc +++ b/chrome/plugin/plugin_main.cc @@ -111,22 +111,7 @@ int PluginMain(const MainFunctionParams& parameters) { } #endif if (parsed_command_line.HasSwitch(switches::kPluginStartupDialog)) { -#if defined(OS_WIN) - std::wstring title = chrome::kBrowserAppName; - title += L" plugin"; // makes attaching to process easier - win_util::MessageBox(NULL, L"plugin starting...", title, - MB_OK | MB_SETFOREGROUND); -#elif defined(OS_MACOSX) - // TODO(playmobil): In the long term, overriding this flag doesn't seem - // right, either use our own flag or open a dialog we can use. - // This is just to ease debugging in the interim. - LOG(WARNING) << "Plugin (" - << getpid() - << ") paused waiting for debugger to attach @ pid"; - pause(); -#else - NOTIMPLEMENTED() << " non-windows startup, plugin startup dialog etc."; -#endif + ChildProcess::WaitForDebugger(L"Plugin"); } { |