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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 86443002: Changes to enable HTML5 autoplay for voice search. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Isolated media autoplay enabler from Tab Created 7 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/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index 981532a79180ff753854080048e23abd7c8be194..74ccf6df66679482fc7c489fdc6cb72683f99b14 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2256,6 +2256,10 @@ void ChromeContentBrowserClient::OverrideWebkitPrefs(
web_prefs->device_scale_adjustment = GetDeviceScaleAdjustment();
web_prefs->force_enable_zoom =
prefs->GetBoolean(prefs::kWebKitForceEnableZoom);
+ // Enables media autoplay to support audio playback for voice searches.
+ // Disabled in VoiceSearchTabHelper.
+ web_prefs->user_gesture_required_for_media_playback =
+ !google_util::IsGoogleSearchUrl(url);
Ted C 2013/12/17 17:52:22 also, should this be checking against the voice se
apiccion 2013/12/17 18:53:37 https://codereview.chromium.org/106103006/ talked
#endif
#if defined(OS_ANDROID)

Powered by Google App Engine
This is Rietveld 408576698