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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 17826006: Remove dependency of NaClHostMessageFilter code on Profiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 7 years, 6 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/nacl_host/nacl_host_message_filter.h » ('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
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 5dc842e682d64b8bdcf0b4ef4d05ee0396d0633a..3070791abbf69a9f20f1cfd4ada7ebfa35e13f39 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -769,8 +769,12 @@ void ChromeContentBrowserClient::RenderProcessHostCreated(
host->GetChannel()->AddFilter(new WebRtcLoggingHandlerHost());
#endif
#if !defined(DISABLE_NACL)
- host->GetChannel()->AddFilter(new NaClHostMessageFilter(id, profile,
- context));
+ ExtensionInfoMap* extension_info_map =
+ extensions::ExtensionSystem::Get(profile)->info_map();
+ host->GetChannel()->AddFilter(new NaClHostMessageFilter(
+ id, profile->IsOffTheRecord(),
+ profile->GetPath(), extension_info_map,
+ context));
#endif
host->Send(new ChromeViewMsg_SetIsIncognitoProcess(
« no previous file with comments | « no previous file | chrome/browser/nacl_host/nacl_host_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698