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

Unified Diff: remoting/client/jni/jni_pairing_secret_fetcher.h

Issue 2142253002: [Remoting Android] Fix GetWeakPtr() calls on multiple threads (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
« no previous file with comments | « remoting/client/jni/jni_display_handler.cc ('k') | remoting/client/jni/jni_pairing_secret_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/jni/jni_pairing_secret_fetcher.h
diff --git a/remoting/client/jni/jni_pairing_secret_fetcher.h b/remoting/client/jni/jni_pairing_secret_fetcher.h
index 39f448dfeb98331092efd5e83e809dbbd4a9f0b1..db329e338457eae1422445e3f0578bd52fce1cd1 100644
--- a/remoting/client/jni/jni_pairing_secret_fetcher.h
+++ b/remoting/client/jni/jni_pairing_secret_fetcher.h
@@ -51,6 +51,7 @@ class JniPairingSecretFetcher {
// the UI thread, but must be posted to the network thread to call it.
protocol::SecretFetchedCallback callback_;
+ base::WeakPtr<JniPairingSecretFetcher> weak_ptr_;
base::WeakPtrFactory<JniPairingSecretFetcher> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(JniPairingSecretFetcher);
« no previous file with comments | « remoting/client/jni/jni_display_handler.cc ('k') | remoting/client/jni/jni_pairing_secret_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698