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

Unified Diff: chrome/browser/android/mojo/chrome_service_registrar_android.cc

Issue 1831173002: Scaffolding for Android implementation of PaymentRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo
Patch Set: thestig@ & esprehn@ comments Created 4 years, 8 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: chrome/browser/android/mojo/chrome_service_registrar_android.cc
diff --git a/chrome/browser/android/mojo/chrome_service_registrar_android.cc b/chrome/browser/android/mojo/chrome_service_registrar_android.cc
new file mode 100644
index 0000000000000000000000000000000000000000..c7749ada85ae04f7d19494f5d49ba627ff896300
--- /dev/null
+++ b/chrome/browser/android/mojo/chrome_service_registrar_android.cc
@@ -0,0 +1,24 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/android/mojo/chrome_service_registrar_android.h"
+
+#include "base/android/context_utils.h"
+#include "base/android/jni_android.h"
+#include "content/public/browser/android/service_registry_android.h"
+#include "jni/ChromeServiceRegistrar_jni.h"
+
+// static
+bool ChromeServiceRegistrarAndroid::Register(JNIEnv* env) {
+ return RegisterNativesImpl(env);
+}
+
+// static
+void ChromeServiceRegistrarAndroid::RegisterRenderFrameMojoServices(
+ content::ServiceRegistry* registry) {
+ Java_ChromeServiceRegistrar_registerRenderFrameMojoServices(
+ base::android::AttachCurrentThread(),
+ content::ServiceRegistryAndroid::Create(registry)->GetObj().obj(),
+ base::android::GetApplicationContext());
+}
« no previous file with comments | « chrome/browser/android/mojo/chrome_service_registrar_android.h ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698