// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/safe_browsing/android/safe_browsing_settings_launcher_android.h"
#include "base/android/jni_android.h"
#include "ui/android/window_android.h"
// Must come after all headers that specialize FromJniType() / ToJniType().
#include "chrome/android/chrome_jni_headers/SafeBrowsingSettingsLauncher_jni.h"
namespace safe_browsing {
void ShowSafeBrowsingSettings(ui::WindowAndroid* window,
SettingsAccessPoint access_point) {
Java_SafeBrowsingSettingsLauncher_showSafeBrowsingSettings(
base::android::AttachCurrentThread(), window->GetJavaObject(),
static_cast<int>(access_point));
}
} // namespace safe_browsing