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

Unified Diff: content/shell/shell_main_delegate.cc

Issue 10809016: Move content_shell and content_browsertests code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix android Created 8 years, 5 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 | « content/shell/shell_main_delegate.h ('k') | content/shell/shell_resource_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/shell_main_delegate.cc
===================================================================
--- content/shell/shell_main_delegate.cc (revision 147404)
+++ content/shell/shell_main_delegate.cc (working copy)
@@ -44,6 +44,8 @@
} // namespace
+namespace content {
+
ShellMainDelegate::ShellMainDelegate() {
}
@@ -62,7 +64,7 @@
#if defined(OS_MACOSX)
OverrideFrameworkBundlePath();
#endif
- content::SetContentClient(&content_client_);
+ SetContentClient(&content_client_);
return false;
}
@@ -75,7 +77,7 @@
int ShellMainDelegate::RunProcess(
const std::string& process_type,
- const content::MainFunctionParams& main_function_params) {
+ const MainFunctionParams& main_function_params) {
if (!process_type.empty())
return -1;
@@ -83,7 +85,7 @@
return ShellBrowserMain(main_function_params);
#else
// If no process type is specified, we are creating the main browser process.
- browser_runner_.reset(content::BrowserMainRunner::Create());
+ browser_runner_.reset(BrowserMainRunner::Create());
int exit_code = browser_runner_->Initialize(main_function_params);
DCHECK(exit_code < 0)
<< "BrowserRunner::Initialize failed in ShellMainDelegate";
@@ -126,13 +128,14 @@
ui::ResourceBundle::InitSharedInstanceWithPakPath(pak_file);
}
-content::ContentBrowserClient* ShellMainDelegate::CreateContentBrowserClient() {
- browser_client_.reset(new content::ShellContentBrowserClient);
+ContentBrowserClient* ShellMainDelegate::CreateContentBrowserClient() {
+ browser_client_.reset(new ShellContentBrowserClient);
return browser_client_.get();
}
-content::ContentRendererClient*
- ShellMainDelegate::CreateContentRendererClient() {
- renderer_client_.reset(new content::ShellContentRendererClient);
+ContentRendererClient* ShellMainDelegate::CreateContentRendererClient() {
+ renderer_client_.reset(new ShellContentRendererClient);
return renderer_client_.get();
}
+
+} // namespace content
« no previous file with comments | « content/shell/shell_main_delegate.h ('k') | content/shell/shell_resource_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698