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

Unified Diff: content/shell/shell_browser_main.cc

Issue 9150016: Move creation and ownership of ResourceDispatcherHost and PluginService to content. This gives a ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix chromeos ui_tests Created 8 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/shell/shell_browser_main.cc
===================================================================
--- content/shell/shell_browser_main.cc (revision 117096)
+++ content/shell/shell_browser_main.cc (working copy)
@@ -13,7 +13,6 @@
#include "content/browser/download/download_file_manager.h"
#include "content/browser/download/save_file_manager.h"
#include "content/browser/plugin_service_impl.h"
-#include "content/browser/renderer_host/resource_dispatcher_host.h"
#include "content/shell/shell.h"
#include "content/shell/shell_browser_context.h"
#include "content/shell/shell_content_browser_client.h"
@@ -48,7 +47,6 @@
Shell::PlatformInitialize();
net::NetModule::SetResourceProvider(Shell::PlatformResourceProvider);
- PluginService::GetInstance()->Init();
Shell::CreateNewWindow(browser_context_.get(),
GetStartupURL(),
@@ -59,32 +57,12 @@
void ShellBrowserMainParts::PostMainMessageLoopRun() {
browser_context_.reset();
-
- resource_dispatcher_host_->download_file_manager()->Shutdown();
- resource_dispatcher_host_->save_file_manager()->Shutdown();
- resource_dispatcher_host_->Shutdown();
}
-void ShellBrowserMainParts::PreStopThread(BrowserThread::ID id) {
- if (id == BrowserThread::WEBKIT_DEPRECATED) {
- resource_dispatcher_host_.reset();
- }
-}
-
bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) {
return false;
}
-ResourceDispatcherHost* ShellBrowserMainParts::GetResourceDispatcherHost() {
- if (!resource_dispatcher_host_.get()) {
- ResourceQueue::DelegateSet resource_queue_delegates;
- resource_dispatcher_host_.reset(
- new ResourceDispatcherHost(resource_queue_delegates));
- resource_dispatcher_host_->Initialize();
- }
- return resource_dispatcher_host_.get();
-}
-
ui::Clipboard* ShellBrowserMainParts::GetClipboard() {
if (!clipboard_.get())
clipboard_.reset(new ui::Clipboard());

Powered by Google App Engine
This is Rietveld 408576698