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

Unified Diff: chrome/app/chrome_main_delegate.cc

Issue 9950040: Get chrome:// dev tool urls hooked up in content_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | chrome/common/chrome_content_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_main_delegate.cc
===================================================================
--- chrome/app/chrome_main_delegate.cc (revision 133033)
+++ chrome/app/chrome_main_delegate.cc (working copy)
@@ -447,6 +447,12 @@
command_line.HasSwitch(switches::kEnableBenchmarking)) {
base::FieldTrial::EnableBenchmarking();
}
+
+ std::string process_type = command_line.GetSwitchValueASCII(
+ switches::kProcessType);
+ content::SetContentClient(&chrome_content_client_);
+ InitializeChromeContentClient(process_type);
+
return false;
}
@@ -543,11 +549,6 @@
std::string process_type =
command_line.GetSwitchValueASCII(switches::kProcessType);
- // Initialize the content client which that code uses to talk to Chrome.
- content::SetContentClient(&chrome_content_client_);
- InitializeChromeContentClient(process_type);
-
- // Initialize the Chrome path provider.
chrome::RegisterPathProvider();
#if defined(OS_MACOSX)
@@ -589,12 +590,6 @@
}
logging::InitChromeLogging(command_line, file_state);
- // Register internal Chrome schemes so they'll be parsed correctly. This
- // must happen before we process any URLs with the affected schemes, and
- // must be done in all processes that work with these URLs (i.e. including
- // renderers).
- chrome::RegisterChromeSchemes();
-
#if defined(OS_WIN)
// TODO(darin): Kill this once http://crbug.com/52609 is fixed.
ui::SetResourcesDataDLL(_AtlBaseModule.GetResourceInstance());
« no previous file with comments | « no previous file | chrome/common/chrome_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698