Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(734)

Side by Side Diff: chrome/plugin/plugin_main.cc

Issue 10896: Re-do the way browser windows are shown:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 "base/command_line.h" 5 #include "base/command_line.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "chrome/common/chrome_constants.h" 7 #include "chrome/common/chrome_constants.h"
8 #include "chrome/common/chrome_switches.h" 8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/common/logging_chrome.h" 9 #include "chrome/common/logging_chrome.h"
10 #include "chrome/common/win_util.h" 10 #include "chrome/common/win_util.h"
11 #include "chrome/plugin/plugin_process.h" 11 #include "chrome/plugin/plugin_process.h"
12 #include "chrome/test/injection_test_dll.h" 12 #include "chrome/test/injection_test_dll.h"
13 #include "sandbox/src/sandbox.h" 13 #include "sandbox/src/sandbox.h"
14 14
15 // mainline routine for running as the plugin process 15 // mainline routine for running as the plugin process
16 int PluginMain(CommandLine &parsed_command_line, int show_command, 16 int PluginMain(CommandLine &parsed_command_line,
17 sandbox::TargetServices* target_services) { 17 sandbox::TargetServices* target_services) {
18 // The main thread of the plugin services IO. 18 // The main thread of the plugin services IO.
19 MessageLoopForIO main_message_loop; 19 MessageLoopForIO main_message_loop;
20 std::wstring app_name = chrome::kBrowserAppName; 20 std::wstring app_name = chrome::kBrowserAppName;
21 PlatformThread::SetName(WideToASCII(app_name + L"_PluginMain").c_str()); 21 PlatformThread::SetName(WideToASCII(app_name + L"_PluginMain").c_str());
22 22
23 CoInitialize(NULL); 23 CoInitialize(NULL);
24 DLOG(INFO) << "Started plugin with " << 24 DLOG(INFO) << "Started plugin with " <<
25 parsed_command_line.command_line_string(); 25 parsed_command_line.command_line_string();
26 26
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Load the accelerator table from the browser executable and tell the 72 // Load the accelerator table from the browser executable and tell the
73 // message loop to use it when translating messages. 73 // message loop to use it when translating messages.
74 MessageLoop::current()->Run(); 74 MessageLoop::current()->Run();
75 } 75 }
76 PluginProcess::GlobalCleanup(); 76 PluginProcess::GlobalCleanup();
77 77
78 CoUninitialize(); 78 CoUninitialize();
79 return 0; 79 return 0;
80 } 80 }
81 81
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698