Index: chrome/browser/extensions/extension_tts_engine_api.cc |
=================================================================== |
--- chrome/browser/extensions/extension_tts_engine_api.cc (revision 107928) |
+++ chrome/browser/extensions/extension_tts_engine_api.cc (working copy) |
@@ -80,6 +80,11 @@ |
Utterance* utterance, |
const Extension** matching_extension, |
size_t* voice_index) { |
+ // This will only happen during unit testing. Otherwise, an utterance |
+ // will always have an associated profile. |
+ if (!utterance->profile()) |
+ return false; |
+ |
ExtensionService* service = utterance->profile()->GetExtensionService(); |
DCHECK(service); |
ExtensionEventRouter* event_router = |