| From 9a0d437c62db2b7068d61a70359a44e6af48765a Mon Sep 17 00:00:00 2001 |
| From: Daniel Micay <danielmicay@gmail.com> |
| Date: Thu, 4 Jul 2019 19:08:52 -0400 |
| Subject: [PATCH] disable media router by default |
| |
| --- |
| chrome/browser/media/router/media_router_feature.cc | 2 +- |
| chrome/browser/profiles/profile_impl.cc | 2 +- |
| 2 files changed, 2 insertions(+), 2 deletions(-) |
| |
| diff --git a/chrome/browser/media/router/media_router_feature.cc b/chrome/browser/media/router/media_router_feature.cc |
| index 38e705e3004ea..3f9ce1554fc50 100644 |
| --- a/chrome/browser/media/router/media_router_feature.cc |
| +++ b/chrome/browser/media/router/media_router_feature.cc |
| @@ -118,7 +118,7 @@ bool MediaRouterEnabled(content::BrowserContext* context) { |
| pref_values.insert(std::make_pair(context, allowed)); |
| return allowed; |
| } |
| - return true; |
| + return false; |
| } |
| |
| #if !BUILDFLAG(IS_ANDROID) |
| diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc |
| index 0e17f238a710c..20d3f78c175a7 100644 |
| --- a/chrome/browser/profiles/profile_impl.cc |
| +++ b/chrome/browser/profiles/profile_impl.cc |
| @@ -412,7 +412,7 @@ void ProfileImpl::RegisterProfilePrefs( |
| #endif |
| |
| registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false); |
| - registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true); |
| + registry->RegisterBooleanPref(prefs::kEnableMediaRouter, false); |
| #if !BUILDFLAG(IS_ANDROID) |
| registry->RegisterBooleanPref(prefs::kShowCastIconInToolbar, false); |
| #endif // !BUILDFLAG(IS_ANDROID) |