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

Unified Diff: content/browser/plugin_process_host.cc

Issue 7888067: Oops, missed a NULL check. Fix flaky test. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Undid test, CancelRequests() can only be invoked in destructor. Created 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/plugin_process_host.cc
diff --git a/content/browser/plugin_process_host.cc b/content/browser/plugin_process_host.cc
index f9b4e10ce9de6814f2d78dbb4671e086b048733a..665d4f00030b0babe5fc64a8315f4c1646c07891 100644
--- a/content/browser/plugin_process_host.cc
+++ b/content/browser/plugin_process_host.cc
@@ -327,7 +327,9 @@ void PluginProcessHost::CancelRequests() {
pending_requests_.clear();
while (!sent_requests_.empty()) {
- sent_requests_.front()->OnError();
+ Client* client = sent_requests_.front();
+ if (client)
+ client->OnError();
sent_requests_.pop_front();
}
}
« 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