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

Unified Diff: chrome/browser/android/webapk/chrome_webapk_host.cc

Issue 2259093003: Move native "enable-webapk" check to ChromeWebApkHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error. Created 4 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
« no previous file with comments | « chrome/browser/android/webapk/chrome_webapk_host.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/webapk/chrome_webapk_host.cc
diff --git a/chrome/browser/android/webapk/chrome_webapk_host.cc b/chrome/browser/android/webapk/chrome_webapk_host.cc
new file mode 100644
index 0000000000000000000000000000000000000000..4014e2f6fbd9811ae0bb45a627de8bbbf79b57e7
--- /dev/null
+++ b/chrome/browser/android/webapk/chrome_webapk_host.cc
@@ -0,0 +1,13 @@
+// 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/webapk/chrome_webapk_host.h"
+
+#include "jni/ChromeWebApkHost_jni.h"
+
+// static
+bool ChromeWebApkHost::AreWebApkEnabled() {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ return Java_ChromeWebApkHost_areWebApkEnabled(env);
+}
« no previous file with comments | « chrome/browser/android/webapk/chrome_webapk_host.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698