Commit 101383b3 authored by Maksim Ivanov's avatar Maksim Ivanov Committed by Commit Bot

Fix use-after-move in //content/shell/browser/web_test/web_test_control_host.cc

Fix use-after-move (potential) bugs found by the
"bugprone-use-after-move" clang-tidy check.

Bug: 1122844
Change-Id: I8a1236c9a5f88ae44274557a59fb21605e4591b7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2382853Reviewed-by: default avatardanakj <danakj@chromium.org>
Commit-Queue: danakj <danakj@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803516}
parent 78fc7422
......@@ -1579,9 +1579,9 @@ void WebTestControlHost::ClearAllDatabases() {
scoped_refptr<storage::DatabaseTracker> db_tracker =
base::WrapRefCounted(storage_partition->GetDatabaseTracker());
db_tracker->task_runner()->PostTask(
FROM_HERE,
base::BindOnce(run_on_database_sequence, std::move(db_tracker)));
base::SequencedTaskRunner* task_runner = db_tracker->task_runner();
task_runner->PostTask(FROM_HERE, base::BindOnce(run_on_database_sequence,
std::move(db_tracker)));
}
void WebTestControlHost::SimulateWebNotificationClick(
......
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