diff options
author | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-15 02:22:32 +0000 |
---|---|---|
committer | willchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-15 02:22:32 +0000 |
commit | 8d32d5f98a1a84510df365e43a287d0c8f22ec82 (patch) | |
tree | e758e9799e54d2ffa7986445d8b3001b6986b65d /content/browser/plugin_process_host.cc | |
parent | e9c026ec308d698de1a4541241efd9fee70348eb (diff) | |
download | chromium_src-8d32d5f98a1a84510df365e43a287d0c8f22ec82.zip chromium_src-8d32d5f98a1a84510df365e43a287d0c8f22ec82.tar.gz chromium_src-8d32d5f98a1a84510df365e43a287d0c8f22ec82.tar.bz2 |
Oops, missed a NULL check. Fix flaky test.
CancelRequests() needs to handle NULLs in sent_requests_.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7888067
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@101228 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/plugin_process_host.cc')
-rw-r--r-- | content/browser/plugin_process_host.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/content/browser/plugin_process_host.cc b/content/browser/plugin_process_host.cc index f9b4e10..665d4f0 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(); } } |