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

Unified Diff: chrome/browser/automation/automation_resource_message_filter.cc

Issue 200003: Chrome side of the fix for http://b/issue?id=1694574, which is a bug caused w... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/browser/automation/automation_provider_win.cc ('k') | chrome/browser/external_tab_container.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_resource_message_filter.cc
===================================================================
--- chrome/browser/automation/automation_resource_message_filter.cc (revision 25555)
+++ chrome/browser/automation/automation_resource_message_filter.cc (working copy)
@@ -46,7 +46,18 @@
void AutomationResourceMessageFilter::OnChannelClosing() {
channel_ = NULL;
request_map_.clear();
- filtered_render_views_.clear();
+
+ // Only erase RenderViews which are associated with this
+ // AutomationResourceMessageFilter instance.
+ RenderViewMap::iterator index = filtered_render_views_.begin();
+ while (index != filtered_render_views_.end()) {
+ const AutomationDetails& details = (*index).second;
+ if (details.filter.get() == this) {
+ filtered_render_views_.erase(index++);
+ } else {
+ index++;
+ }
+ }
}
// Called on the IPC thread:
« no previous file with comments | « chrome/browser/automation/automation_provider_win.cc ('k') | chrome/browser/external_tab_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698