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

Unified Diff: android_webview/native/android_web_view_util.cc

Issue 10855171: Add a test runner for android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address feedback Created 8 years, 4 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: android_webview/native/android_web_view_util.cc
diff --git a/android_webview/native/android_web_view_util.cc b/android_webview/native/android_web_view_util.cc
new file mode 100644
index 0000000000000000000000000000000000000000..3b8c830334eade6fbd33032dcce97c59c439073e
--- /dev/null
+++ b/android_webview/native/android_web_view_util.cc
@@ -0,0 +1,20 @@
+// Copyright (c) 2012 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 "android_webview/native/android_web_view_util.h"
+
+#include "android_webview/native/aw_browser_dependency_factory.h"
+#include "base/android/jni_android.h"
+#include "jni/AndroidWebViewUtil_jni.h"
+
+static jint CreateNativeWebContents(
+ JNIEnv* env, jclass clazz, jboolean incognito) {
+ android_webview::AwBrowserDependencyFactory* browser_deps =
+ android_webview::AwBrowserDependencyFactory::GetInstance();
+ return reinterpret_cast<jint>(browser_deps->CreateWebContents(incognito));
+}
+
+bool RegisterAndroidWebViewUtil(JNIEnv* env) {
+ return RegisterNativesImpl(env);
+}
« no previous file with comments | « android_webview/native/android_web_view_util.h ('k') | android_webview/native/android_webview_jni_registrar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698