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

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

Issue 6677064: Remove last dependencies on chrome\common from chrome\plugin. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 months 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
« no previous file with comments | « chrome/plugin/plugin_channel.cc ('k') | chrome/plugin/plugin_thread.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <objbase.h> 8 #include <objbase.h>
9 #include <windows.h> 9 #include <windows.h>
10 #endif 10 #endif
11 11
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/message_loop.h" 13 #include "base/message_loop.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/threading/platform_thread.h" 15 #include "base/threading/platform_thread.h"
16 #include "chrome/common/chrome_constants.h"
17 #include "chrome/common/chrome_switches.h"
18 #include "chrome/common/default_plugin.h"
19 #include "chrome/common/logging_chrome.h"
20 #include "chrome/plugin/plugin_thread.h" 16 #include "chrome/plugin/plugin_thread.h"
21 #include "content/common/child_process.h" 17 #include "content/common/child_process.h"
18 #include "content/common/content_switches.h"
22 #include "content/common/hi_res_timer_manager.h" 19 #include "content/common/hi_res_timer_manager.h"
23 #include "content/common/main_function_params.h" 20 #include "content/common/main_function_params.h"
24 #include "ui/base/system_monitor/system_monitor.h" 21 #include "ui/base/system_monitor/system_monitor.h"
25 22
26 #if defined(OS_WIN) 23 #if defined(OS_WIN)
27 #include "content/common/injection_test_dll.h" 24 #include "content/common/injection_test_dll.h"
28 #include "sandbox/src/sandbox.h" 25 #include "sandbox/src/sandbox.h"
29 #elif defined(OS_POSIX) && !defined(OS_MACOSX) 26 #elif defined(OS_POSIX) && !defined(OS_MACOSX)
30 #include "base/global_descriptors_posix.h" 27 #include "base/global_descriptors_posix.h"
31 #include "ipc/ipc_descriptors.h" 28 #include "ipc/ipc_descriptors.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 if (!result) { 153 if (!result) {
157 __debugbreak(); 154 __debugbreak();
158 _exit(1); 155 _exit(1);
159 } 156 }
160 } 157 }
161 158
162 FreeLibrary(sandbox_test_module); 159 FreeLibrary(sandbox_test_module);
163 } 160 }
164 #endif 161 #endif
165 162
166 chrome::RegisterInternalDefaultPlugin();
167
168 MessageLoop::current()->Run(); 163 MessageLoop::current()->Run();
169 } 164 }
170 165
171 #if defined(OS_WIN) 166 #if defined(OS_WIN)
172 CoUninitialize(); 167 CoUninitialize();
173 #endif 168 #endif
174 169
175 return 0; 170 return 0;
176 } 171 }
OLDNEW
« no previous file with comments | « chrome/plugin/plugin_channel.cc ('k') | chrome/plugin/plugin_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698