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

Unified Diff: chrome/browser/browser_main.cc

Issue 7246010: Fixed a few valgrind tests by not assuming the UrlFetcher arrives with the same URL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 months 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/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 90030)
+++ chrome/browser/browser_main.cc (working copy)
@@ -1968,6 +1968,13 @@
}
#endif
+ // Some tests don't set parameters.ui_task, so they started translate
+ // language fetch that was never completed so we need to cleanup here
+ // otherwise it will be done by the destructor in a wrong thread.
+ if (parameters.ui_task == NULL && translate_manager != NULL)
+ translate_manager->CleanupPendingUlrFetcher();
+
+
chrome_browser_net_websocket_experiment::WebSocketExperimentRunner::Stop();
process_singleton.Cleanup();
« no previous file with comments | « no previous file | chrome/browser/translate/translate_manager.h » ('j') | chrome/browser/translate/translate_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698