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

Unified Diff: device/gamepad/gamepad_provider.cc

Issue 2466073002: Movw GamepadService out of content/browser/ and into device/ (Closed)
Patch Set: Fixed everything but one unittest Created 4 years, 1 month 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
« no previous file with comments | « device/gamepad/gamepad_provider.h ('k') | device/gamepad/gamepad_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/gamepad/gamepad_provider.cc
diff --git a/device/gamepad/gamepad_provider.cc b/device/gamepad/gamepad_provider.cc
index d5dd358702c74bcdb42ada0696cce0fd2a56f6d3..d58c32fb7b60faa275686a754fd466c9a00227f1 100644
--- a/device/gamepad/gamepad_provider.cc
+++ b/device/gamepad/gamepad_provider.cc
@@ -39,20 +39,18 @@ GamepadProvider::ClosureAndThread::ClosureAndThread(
GamepadProvider::ClosureAndThread::~ClosureAndThread() {}
GamepadProvider::GamepadProvider(
- std::unique_ptr<GamepadSharedBuffer> buffer,
GamepadConnectionChangeClient* connection_change_client)
: is_paused_(true),
have_scheduled_do_poll_(false),
devices_changed_(true),
ever_had_user_gesture_(false),
sanitize_(true),
- gamepad_shared_buffer_(std::move(buffer)),
+ gamepad_shared_buffer_(new GamepadSharedBuffer()),
connection_change_client_(connection_change_client) {
Initialize(std::unique_ptr<GamepadDataFetcher>());
}
GamepadProvider::GamepadProvider(
- std::unique_ptr<GamepadSharedBuffer> buffer,
GamepadConnectionChangeClient* connection_change_client,
std::unique_ptr<GamepadDataFetcher> fetcher)
: is_paused_(true),
@@ -60,7 +58,7 @@ GamepadProvider::GamepadProvider(
devices_changed_(true),
ever_had_user_gesture_(false),
sanitize_(true),
- gamepad_shared_buffer_(std::move(buffer)),
+ gamepad_shared_buffer_(new GamepadSharedBuffer()),
connection_change_client_(connection_change_client) {
Initialize(std::move(fetcher));
}
« no previous file with comments | « device/gamepad/gamepad_provider.h ('k') | device/gamepad/gamepad_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698