From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Heilig Benedek Date: Thu, 18 Oct 2018 17:08:03 -0700 Subject: tts.patch * Adds patch in //chrome/browser/speech/tts_controller_impl.cc to disable calls using chrome profile class. * Adds patch in //chrome/browser/speech/tts_message_filter.cc to remove reference to browser context when its signaled for destruction from content layer. diff --git a/chrome/browser/speech/tts_controller_delegate_impl.cc b/chrome/browser/speech/tts_controller_delegate_impl.cc index cce8cad71b9f620a3d26946a7df937a1336d741e..ea5db4e66f1cbbb2728558091dc07a413a536e1f 100644 --- a/chrome/browser/speech/tts_controller_delegate_impl.cc +++ b/chrome/browser/speech/tts_controller_delegate_impl.cc @@ -213,6 +213,7 @@ void TtsControllerDelegateImpl::UpdateUtteranceDefaultsFromPrefs( const PrefService* TtsControllerDelegateImpl::GetPrefService( content::TtsUtterance* utterance) { const PrefService* prefs = nullptr; +#if 0 // The utterance->GetBrowserContext() is null in tests. if (utterance->GetBrowserContext()) { const Profile* profile = @@ -220,6 +221,7 @@ const PrefService* TtsControllerDelegateImpl::GetPrefService( if (profile) prefs = profile->GetPrefs(); } +#endif return prefs; }