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

Unified Diff: device/vr/android/gvr/gvr_gamepad_data_fetcher.cc

Issue 2570553004: Clean up some VrShell threading issues and remove unnecessary WeakPtr types. (Closed)
Patch Set: rebase Created 4 years 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/vr/android/gvr/gvr_gamepad_data_fetcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/gvr/gvr_gamepad_data_fetcher.cc
diff --git a/device/vr/android/gvr/gvr_gamepad_data_fetcher.cc b/device/vr/android/gvr/gvr_gamepad_data_fetcher.cc
index 9f7f391952872f3472d577d5d46c67a675fc94a6..348beefcad523279d8ceca6272dbfb142a7279a4 100644
--- a/device/vr/android/gvr/gvr_gamepad_data_fetcher.cc
+++ b/device/vr/android/gvr/gvr_gamepad_data_fetcher.cc
@@ -28,9 +28,8 @@ void CopyToWebUString(blink::WebUChar* dest,
using namespace blink;
-GvrGamepadDataFetcher::Factory::Factory(
- const base::WeakPtr<GvrDelegate>& delegate,
- unsigned int display_id)
+GvrGamepadDataFetcher::Factory::Factory(GvrDelegate* delegate,
+ unsigned int display_id)
: delegate_(delegate), display_id_(display_id) {}
GvrGamepadDataFetcher::Factory::~Factory() {}
@@ -39,7 +38,7 @@ std::unique_ptr<GamepadDataFetcher>
GvrGamepadDataFetcher::Factory::CreateDataFetcher() {
if (!delegate_)
return nullptr;
- return base::MakeUnique<GvrGamepadDataFetcher>(delegate_.get(), display_id_);
+ return base::MakeUnique<GvrGamepadDataFetcher>(delegate_, display_id_);
}
GamepadSource GvrGamepadDataFetcher::Factory::source() {
« no previous file with comments | « device/vr/android/gvr/gvr_gamepad_data_fetcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698