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

Unified Diff: chrome/browser/browser_main.cc

Issue 6695029: Make ContentBrowserClient not be owned by ContentClient, so that the latter d... (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 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') | chrome/common/chrome_content_client.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 78112)
+++ chrome/browser/browser_main.cc (working copy)
@@ -1477,8 +1477,8 @@
// Override the default ContentBrowserClient to let Chrome participate in
// content logic. Must be done before any tabs are created.
- content::GetContentClient()->set_browser_client(
- new chrome::ChromeContentBrowserClient());
+ chrome::ChromeContentBrowserClient browser_client;
+ content::GetContentClient()->set_browser_client(&browser_client);
// Tests should be able to tune login manager before showing it.
// Thus only show login manager in normal (non-testing) mode.
« no previous file with comments | « no previous file | chrome/common/chrome_content_client.h » ('j') | chrome/common/chrome_content_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698