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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 6880320: Move code that talks to spellchecking out of content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_content_browser_client.cc
===================================================================
--- chrome/browser/chrome_content_browser_client.cc (revision 83517)
+++ chrome/browser/chrome_content_browser_client.cc (working copy)
@@ -53,14 +53,14 @@
void ChromeContentBrowserClient::BrowserRenderProcessHostCreated(
BrowserRenderProcessHost* host) {
+ int id = host->id();
+ Profile* profile = host->profile();
host->channel()->AddFilter(new ChromeRenderMessageFilter(
- host->id(),
- host->profile(),
- host->profile()->GetRequestContextForRenderProcess(host->id())));
+ id, profile, profile->GetRequestContextForRenderProcess(id)));
host->channel()->AddFilter(new PrintingMessageFilter());
host->channel()->AddFilter(
- new SearchProviderInstallStateMessageFilter(host->id(), host->profile()));
- host->channel()->AddFilter(new SpellCheckMessageFilter());
+ new SearchProviderInstallStateMessageFilter(id, profile));
+ host->channel()->AddFilter(new SpellCheckMessageFilter(id));
}
content::WebUIFactory* ChromeContentBrowserClient::GetWebUIFactory() {
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698