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

Unified Diff: chrome/browser/browser_main.cc

Issue 6794035: Move dispatching and sending of the last extension specific messages out of TabContents and Rende... (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
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 80315)
+++ chrome/browser/browser_main.cc (working copy)
@@ -1415,6 +1415,12 @@
SetBrowserX11ErrorHandlers();
#endif
+ // Override the default ContentBrowserClient to let Chrome participate in
+ // content logic. Must be done before any tabs are created or the profile is
+ // created.
+ chrome::ChromeContentBrowserClient browser_client;
+ content::GetContentClient()->set_browser(&browser_client);
+
// Profile creation ----------------------------------------------------------
#if defined(OS_CHROMEOS)
@@ -1461,11 +1467,6 @@
PrefService* user_prefs = profile->GetPrefs();
DCHECK(user_prefs);
- // Override the default ContentBrowserClient to let Chrome participate in
- // content logic. Must be done before any tabs are created.
- chrome::ChromeContentBrowserClient browser_client;
- content::GetContentClient()->set_browser(&browser_client);
-
// Tests should be able to tune login manager before showing it.
// Thus only show login manager in normal (non-testing) mode.
if (!parameters.ui_task) {

Powered by Google App Engine
This is Rietveld 408576698