Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(748)

Unified Diff: components/exo/gamepad_unittest.cc

Issue 2159283002: exo: Fix crash in out-of-order destruction of Gamepad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/exo/gamepad_unittest.cc
diff --git a/components/exo/gamepad_unittest.cc b/components/exo/gamepad_unittest.cc
index 98d3e0245c5cbe4f45dcf869f5a0ff287f4eb471..bc499972a62146b681bcb058160922673118df51 100644
--- a/components/exo/gamepad_unittest.cc
+++ b/components/exo/gamepad_unittest.cc
@@ -47,7 +47,7 @@ class GamepadTest : public test::ExoTestBase {
void InitializeGamepad(MockGamepadDelegate* delegate) {
polling_task_runner_ = new base::TestSimpleTaskRunner();
- gamepad_.reset(new Gamepad(delegate, polling_task_runner_.get(),
+ gamepad_.reset(new Gamepad(delegate, polling_task_runner_,
base::Bind(&GamepadTest::MockDataFetcherFactory,
base::Unretained(this))));
// Run the polling task runner to have it create the data fetcher.

Powered by Google App Engine
This is Rietveld 408576698