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

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: 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
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 6e16a0b943b5b0717e432c000f521b9908acafc9..c26f6f7b14d2608a650603f009cc8db375120906 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -767,8 +767,11 @@ 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,
Mark Seaborn 2013/06/26 14:45:34 Please put 'id' on the following line for readabil
+ profile->IsOffTheRecord(), profile->GetPath(), extension_info_map,
+ context));
#endif
host->Send(new ChromeViewMsg_SetIsIncognitoProcess(

Powered by Google App Engine
This is Rietveld 408576698