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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 15906013: Separate NaCl messages from the rest of chrome messages and create a new message filter. This is pa… (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 5710591df7440997a7b0a17d7dde8e06d0cd2dcc..4d9e644e105d2b899347a97bc5f27b93fce8d6c3 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -46,6 +46,7 @@
#include "chrome/browser/google/google_util.h"
#include "chrome/browser/media/media_capture_devices_dispatcher.h"
#include "chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h"
+#include "chrome/browser/nacl_host/nacl_host_message_filter.h"
#include "chrome/browser/nacl_host/nacl_process_host.h"
#include "chrome/browser/net/chrome_net_log.h"
#include "chrome/browser/notifications/desktop_notification_service.h"
@@ -734,6 +735,10 @@ void ChromeContentBrowserClient::RenderProcessHostCreated(
#if defined(ENABLE_WEBRTC)
host->GetChannel()->AddFilter(new WebRtcLoggingHandlerHost());
#endif
+#if !defined(DISABLE_NACL)
+ host->GetChannel()->AddFilter(new NaClHostMessageFilter(id, profile,
+ context));
+#endif
host->Send(new ChromeViewMsg_SetIsIncognitoProcess(
profile->IsOffTheRecord()));
« no previous file with comments | « no previous file | chrome/browser/nacl_host/nacl_file_host.h » ('j') | chrome/browser/nacl_host/nacl_host_messages.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698