// Copyright (c) 2023 The Brave Authors. All rights reserved. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this file, // You can obtain one at https://mozilla.org/MPL/2.0/. #include #include "base/android/jni_android.h" #include "base/android/jni_string.h" #include "brave/browser/android/safe_browsing/buildflags.h" #include "brave/browser/brave_browser_process.h" #include "brave/browser/brave_stats/brave_stats_updater.h" #include "chrome/android/chrome_jni_headers/BraveActivity_jni.h" namespace chrome { namespace android { static void JNI_BraveActivity_RestartStatsUpdater(JNIEnv* env) { g_brave_browser_process->brave_stats_updater()->Stop(); g_brave_browser_process->brave_stats_updater()->Start(); } static base::android::ScopedJavaLocalRef JNI_BraveActivity_GetSafeBrowsingApiKey(JNIEnv* env) { return base::android::ConvertUTF8ToJavaString( env, BUILDFLAG(SAFEBROWSING_API_KEY)); } } // namespace android } // namespace chrome