Index: chrome/browser/translate/translate_service.cc |
diff --git a/chrome/browser/translate/translate_service.cc b/chrome/browser/translate/translate_service.cc |
index 03ac7a719c1bc21109b51b9972ff124af8cbba4c..c6d36638d4afa0ca6d7decdf5615e47edac6e52f 100644 |
--- a/chrome/browser/translate/translate_service.cc |
+++ b/chrome/browser/translate/translate_service.cc |
@@ -67,6 +67,7 @@ void TranslateService::Shutdown(bool cleanup_pending_fetcher) { |
void TranslateService::InitializeForTesting() { |
if (!g_translate_service) { |
TranslateService::Initialize(); |
+ translate::TranslateManager::SetIgnoreMissingKeyForTesting(true); |
} else { |
translate::TranslateDownloadManager::GetInstance()->ResetForTesting(); |
g_translate_service->OnResourceRequestsAllowed(); |