Index: chrome/browser/chrome_browser_main.cc |
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc |
index b8e52040305da94c716d14016300a9bda7721e20..0e5aa2015db1f79061f4be98050d2f5127ab98ca 100644 |
--- a/chrome/browser/chrome_browser_main.cc |
+++ b/chrome/browser/chrome_browser_main.cc |
@@ -1692,11 +1692,10 @@ void ChromeBrowserMainParts::PostMainMessageLoopRun() { |
for (size_t i = 0; i < chrome_extra_parts_.size(); ++i) |
chrome_extra_parts_[i]->PostMainMessageLoopRun(); |
- // Some tests don't set parameters.ui_task, so they started translate |
- // language fetch that was never completed so we need to cleanup here |
+ // TranslateManager's URL fetchers should be destructed in the main thread |
// otherwise it will be done by the destructor in a wrong thread. |
- if (parameters().ui_task == NULL && translate_manager_ != NULL) |
- translate_manager_->CleanupPendingUlrFetcher(); |
+ if (translate_manager_ != NULL) |
+ translate_manager_->CleanupPendingUrlFetcher(); |
if (notify_result_ == ProcessSingleton::PROCESS_NONE) |
process_singleton_->Cleanup(); |