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

Unified Diff: chrome/utility/chrome_content_utility_client.cc

Issue 191513003: Check --utility-enable-mdns before local_discovery::ServiceDiscoveryMessageHandler::PreSandboxStart… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/chrome_content_utility_client.cc
diff --git a/chrome/utility/chrome_content_utility_client.cc b/chrome/utility/chrome_content_utility_client.cc
index 68eb979937a8fbb631eb28ed9d0b538775559617..996c82bdf99f76dadeac7b53a1355de01c1f72ef 100644
--- a/chrome/utility/chrome_content_utility_client.cc
+++ b/chrome/utility/chrome_content_utility_client.cc
@@ -179,7 +179,10 @@ bool ChromeContentUtilityClient::OnMessageReceived(
// static
void ChromeContentUtilityClient::PreSandboxStartup() {
#if defined(ENABLE_MDNS)
- local_discovery::ServiceDiscoveryMessageHandler::PreSandboxStartup();
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kUtilityProcessEnableMDns)) {
+ local_discovery::ServiceDiscoveryMessageHandler::PreSandboxStartup();
+ }
#endif // ENABLE_MDNS
// Load media libraries for media file validation.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698