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

Unified Diff: services/shape_detection/shape_detection_service.cc

Issue 2847523002: Android: Remove GetApplicationContext part 4 (Closed)
Patch Set: Rebase and fix build Created 3 years, 7 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
Index: services/shape_detection/shape_detection_service.cc
diff --git a/services/shape_detection/shape_detection_service.cc b/services/shape_detection/shape_detection_service.cc
index 8f6c4532b04d6dcf7339a605a3294ad0ebd538da..719cbd43010a3789748c804db8bb4ad1bdbb2449 100644
--- a/services/shape_detection/shape_detection_service.cc
+++ b/services/shape_detection/shape_detection_service.cc
@@ -11,7 +11,6 @@
#include "services/shape_detection/text_detection_impl.h"
#if defined(OS_ANDROID)
-#include "base/android/context_utils.h"
#include "base/android/jni_android.h"
#include "jni/InterfaceRegistrar_jni.h"
#endif
@@ -60,8 +59,7 @@ service_manager::InterfaceProvider* ShapeDetectionService::GetJavaInterfaces() {
service_manager::mojom::InterfaceProviderPtr provider;
Java_InterfaceRegistrar_createInterfaceRegistryForContext(
base::android::AttachCurrentThread(),
- mojo::MakeRequest(&provider).PassMessagePipe().release().value(),
- base::android::GetApplicationContext());
+ mojo::MakeRequest(&provider).PassMessagePipe().release().value());
java_interface_provider_ =
base::MakeUnique<service_manager::InterfaceProvider>();
java_interface_provider_->Bind(std::move(provider));

Powered by Google App Engine
This is Rietveld 408576698