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

Unified Diff: chrome_frame/chrome_frame_automation.cc

Issue 338010: Hopefully the last of the fixes to get Chrome Frame tests going again. Added ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | « chrome_frame/chrome_frame_automation.h ('k') | 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 30007)
+++ chrome_frame/chrome_frame_automation.cc (working copy)
@@ -1049,6 +1049,21 @@
request_map_.clear();
}
+void ChromeFrameAutomationClient::CleanupAsyncRequests() {
+ RequestMap::iterator index = request_map_.begin();
+ while (index != request_map_.end()) {
+ PluginUrlRequest* request = (*index).second;
+ if (request) {
+ int request_id = request->id();
+ request->Stop();
+ }
+ index++;
+ }
+
+ DCHECK(request_map_.empty());
+ request_map_.clear();
+}
+
bool ChromeFrameAutomationClient::Reinitialize(
ChromeFrameDelegate* delegate) {
if (!tab_.get() || !::IsWindow(chrome_window_)) {
« no previous file with comments | « chrome_frame/chrome_frame_automation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698