Commit 0e6d0b42 authored by csilv@chromium.org's avatar csilv@chromium.org

Fix a bug that incorrectly kicked off the upgrade task.

BUG=104790
TEST=Launch app, verify that upgrade is not detected inappropriately.
Review URL: http://codereview.chromium.org/8588066

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110819 0039d316-1c4b-4281-b951-d872f2087c98
parent a4888371
......@@ -76,14 +76,6 @@ class DetectUpgradeTask : public Task {
is_critical_upgrade_(is_critical_upgrade) {
}
virtual ~DetectUpgradeTask() {
if (!upgrade_detected_task_.is_null()) {
// This has to get deleted on the same thread it was created.
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE,
upgrade_detected_task_);
}
}
virtual void Run() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment