Commit 3ca55e54 authored by Marijn Kruisselbrink's avatar Marijn Kruisselbrink Committed by Commit Bot

ObfuscatedFileUtil destruction should not happen on the wrong thread.

This fixes the destructor to not (incorrectly) assert that it can be
called on any thread. The class comment correctly documents that this
class has to be destroyed on the file task runner all other methods
get invoked on as well.

Change-Id: I281d9886e8076abc0f77e86a91ad7b79fb140e71
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2346931
Commit-Queue: Victor Costan <pwnall@chromium.org>
Reviewed-by: default avatarVictor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796612}
parent cf1c7cec
...@@ -291,9 +291,6 @@ ObfuscatedFileUtil::ObfuscatedFileUtil( ...@@ -291,9 +291,6 @@ ObfuscatedFileUtil::ObfuscatedFileUtil(
} }
ObfuscatedFileUtil::~ObfuscatedFileUtil() { ObfuscatedFileUtil::~ObfuscatedFileUtil() {
// Destruction can happen on any sequence.
DETACH_FROM_SEQUENCE(sequence_checker_);
DropDatabases(); DropDatabases();
} }
......
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