summaryrefslogtreecommitdiffstats
path: root/chrome/default_plugin
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-02 15:31:56 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-02 15:31:56 +0000
commitd583c3a30db9474b0dcef5128ec6901c8ff23b98 (patch)
tree227db6cd60ac59d5e4990d1afa9de091af5295db /chrome/default_plugin
parent4bacb82375e04d44967e71afc1fa6e1018f9810b (diff)
downloadchromium_src-d583c3a30db9474b0dcef5128ec6901c8ff23b98.zip
chromium_src-d583c3a30db9474b0dcef5128ec6901c8ff23b98.tar.gz
chromium_src-d583c3a30db9474b0dcef5128ec6901c8ff23b98.tar.bz2
Thread::Stop() must be called before any subclass's destructor completes.
Update base::Thread documentation, fix all subclasses I could find that had a problem, and remove no-longer-necessary suppressions. BUG=102134 Review URL: http://codereview.chromium.org/8427007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108296 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/default_plugin')
-rw-r--r--chrome/default_plugin/plugin_install_job_monitor.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/default_plugin/plugin_install_job_monitor.cc b/chrome/default_plugin/plugin_install_job_monitor.cc
index 4e19057..c969037 100644
--- a/chrome/default_plugin/plugin_install_job_monitor.cc
+++ b/chrome/default_plugin/plugin_install_job_monitor.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -16,6 +16,10 @@ PluginInstallationJobMonitorThread::PluginInstallationJobMonitorThread()
}
PluginInstallationJobMonitorThread::~PluginInstallationJobMonitorThread() {
+ // The way this class is used, Thread::Stop() has always been called
+ // by the time we reach this point, so we do not need to call it
+ // again.
+ DCHECK(!Thread::IsRunning());
if (install_job_) {
::CloseHandle(install_job_);
install_job_ = NULL;