| // Copyright 2017 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/preferences/preferences_launcher.h" |
| |
| #include "base/android/jni_android.h" |
| #include "chrome/browser/android/tab_android.h" |
| #include "components/password_manager/core/browser/manage_passwords_referrer.h" |
| #include "content/public/browser/web_contents.h" |
| #include "jni/PreferencesLauncher_jni.h" |
| |
| namespace chrome { |
| namespace android { |
| |
| void PreferencesLauncher::ShowAutofillProfileSettings( |
| content::WebContents* web_contents) { |
| Java_PreferencesLauncher_showAutofillProfileSettings( |
| base::android::AttachCurrentThread(), web_contents->GetJavaWebContents()); |
| } |
| |
| void PreferencesLauncher::ShowAutofillCreditCardSettings( |
| content::WebContents* web_contents) { |
| Java_PreferencesLauncher_showAutofillCreditCardSettings( |
| base::android::AttachCurrentThread(), web_contents->GetJavaWebContents()); |
| } |
| |
| void PreferencesLauncher::ShowPasswordSettings( |
| content::WebContents* web_contents, |
| password_manager::ManagePasswordsReferrer referrer) { |
| Java_PreferencesLauncher_showPasswordSettings( |
| base::android::AttachCurrentThread(), web_contents->GetJavaWebContents(), |
| static_cast<int>(referrer)); |
| } |
| |
| } // namespace android |
| } // namespace chrome |