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

Unified Diff: content/app/android/child_process_service_impl.cc

Issue 2535923003: Use JNI UnguessableToken in ScopedSurfaceRequest (Closed)
Patch Set: 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 | « no previous file | content/browser/android/child_process_launcher_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/app/android/child_process_service_impl.cc
diff --git a/content/app/android/child_process_service_impl.cc b/content/app/android/child_process_service_impl.cc
index 083c3209a62c0107afde08c80aaefcb7c9e9889e..465e41ceb64232db863208cf52cac84ca98e1bfe 100644
--- a/content/app/android/child_process_service_impl.cc
+++ b/content/app/android/child_process_service_impl.cc
@@ -10,6 +10,7 @@
#include "base/android/jni_array.h"
#include "base/android/library_loader/library_loader_hooks.h"
#include "base/android/memory_pressure_listener_android.h"
+#include "base/android/unguessable_token_android.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/posix/global_descriptors.h"
@@ -110,8 +111,8 @@ class SurfaceTextureManagerImpl : public gpu::SurfaceTextureManager,
content::
Java_ChildProcessServiceImpl_forwardSurfaceTextureForSurfaceRequest(
- env, service_impl_, request_token.GetHighForSerialization(),
- request_token.GetLowForSerialization(),
+ env, service_impl_,
+ base::android::UnguessableTokenAndroid::Create(env, request_token),
surface_texture->j_surface_texture());
}
« no previous file with comments | « no previous file | content/browser/android/child_process_launcher_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698