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

Unified Diff: chrome_frame/chrome_frame_automation.cc

Issue 6250015: Speculative fix for a bug that happens during Chrome Frame teardown while the... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_frame/chrome_frame_automation.cc
===================================================================
--- chrome_frame/chrome_frame_automation.cc (revision 71820)
+++ chrome_frame/chrome_frame_automation.cc (working copy)
@@ -398,11 +398,12 @@
if (snapshots_)
SendUMAData();
+ // Process pending notifications.
+ thread_->message_loop()->RunAllPending();
+
// Take down the proxy since we no longer have any clients.
+ // Make sure we only do this once all pending messages have been cleared.
proxy_.reset(NULL);
-
- // Process pending notifications.
- thread_->message_loop()->RunAllPending();
}
// Be careful to remove from the list after running pending
// tasks. Otherwise the delegate being removed might miss out
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698