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 64a3c5ee3ad5c5e5a3a07198608bd8d781edc576..df5033861d9d3186e8a3daa2e9f6959d65b76e68 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -159,6 +159,7 @@ |
#include "content/public/common/content_descriptors.h" |
#include "content/public/common/content_features.h" |
#include "content/public/common/content_switches.h" |
+#include "content/public/common/mojo_shell_connection.h" |
#include "content/public/common/sandbox_type.h" |
#include "content/public/common/url_utils.h" |
#include "content/public/common/web_preferences.h" |
@@ -2852,8 +2853,8 @@ void ChromeContentBrowserClient::RegisterInProcessMojoApplications( |
#if defined(OS_CHROMEOS) |
#if defined(MOJO_SHELL_CLIENT) |
if (chrome::IsRunningInMash()) { |
- content::MojoShellConnection::GetForProcess()->MergeService( |
- base::WrapUnique(new chromeos::ChromeInterfaceFactory)); |
+ content::MojoShellConnection::GetForProcess()->AddConnectionFilter( |
+ base::MakeUnique<chromeos::ChromeInterfaceFactory>()); |
} |
#endif // MOJO_SHELL_CLIENT |
#endif // OS_CHROMEOS |