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

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 2559323002: Add a policy to always show the Cast toolbar icon (Closed)
Patch Set: Created 4 years 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/profiles/profile_impl.cc
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc
index 9c4752f9e99322b3d7c62c50f15fe83525a7a52e..445833f8aeda3b98a3670837879eaf1027b65c1f 100644
--- a/chrome/browser/profiles/profile_impl.cc
+++ b/chrome/browser/profiles/profile_impl.cc
@@ -389,7 +389,10 @@ void ProfileImpl::RegisterProfilePrefs(
registry->RegisterBooleanPref(prefs::kForceEphemeralProfiles, false);
#if defined(ENABLE_MEDIA_ROUTER)
registry->RegisterBooleanPref(prefs::kEnableMediaRouter, true);
-#endif
+#if !defined(OS_ANDROID)
+ registry->RegisterBooleanPref(prefs::kShowCastIconInToolbar, false);
+#endif // !defined(OS_ANDROID)
+#endif // defined(ENABLE_MEDIA_ROUTER)
// Initialize the cache prefs.
registry->RegisterFilePathPref(prefs::kDiskCacheDir, base::FilePath());
registry->RegisterIntegerPref(prefs::kDiskCacheSize, 0);

Powered by Google App Engine
This is Rietveld 408576698