|
4 | 4 | #define FIREBASE_FIRESTORE_CLIENT_CPP_SRC_ANDROID_PROMISE_ANDROID_H_ |
5 | 5 |
|
6 | 6 | #include <jni.h> |
| 7 | +#include <memory> |
7 | 8 |
|
8 | | -#include "app/memory/unique_ptr.h" |
9 | 9 | #include "app/src/reference_counted_future_impl.h" |
10 | 10 | #include "app/src/util_android.h" |
11 | 11 | #include "firestore/src/android/converter_android.h" |
12 | 12 | #include "firestore/src/android/document_snapshot_android.h" |
13 | 13 | #include "firestore/src/android/exception_android.h" |
14 | 14 | #include "firestore/src/android/firestore_android.h" |
15 | 15 | #include "firestore/src/android/query_snapshot_android.h" |
| 16 | +#include "firestore/src/common/make_unique.h" |
16 | 17 | #include "firestore/src/jni/env.h" |
17 | 18 | #include "firestore/src/jni/object.h" |
18 | 19 | #include "firestore/src/jni/task.h" |
@@ -76,7 +77,7 @@ class Promise { |
76 | 77 | Promise(ReferenceCountedFutureImpl* impl, |
77 | 78 | FirestoreInternal* firestore, |
78 | 79 | Completion* completion) |
79 | | - : completer_(MakeUnique<Completer<PublicType, InternalType>>( |
| 80 | + : completer_(make_unique<Completer<PublicType, InternalType>>( |
80 | 81 | impl, firestore, completion)), |
81 | 82 | impl_(impl) {} |
82 | 83 |
|
@@ -191,7 +192,7 @@ class Promise { |
191 | 192 | } |
192 | 193 | } |
193 | 194 |
|
194 | | - UniquePtr<Completer<PublicType, InternalType>> completer_; |
| 195 | + std::unique_ptr<Completer<PublicType, InternalType>> completer_; |
195 | 196 |
|
196 | 197 | // Keep these values separate from the Completer in case completion happens |
197 | 198 | // before the future is constructed. |
|
0 commit comments