OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/android/preferences/preferences_launcher.h" | 5 #include "chrome/browser/android/preferences/preferences_launcher.h" |
6 | 6 |
| 7 #include "base/android/jni_android.h" |
| 8 #include "chrome/browser/android/tab_android.h" |
| 9 #include "content/public/browser/web_contents.h" |
7 #include "jni/PreferencesLauncher_jni.h" | 10 #include "jni/PreferencesLauncher_jni.h" |
8 | 11 |
9 namespace chrome { | 12 namespace chrome { |
10 namespace android { | 13 namespace android { |
11 | 14 |
12 void PreferencesLauncher::ShowAutofillSettings() { | 15 void PreferencesLauncher::ShowAutofillSettings() { |
13 Java_PreferencesLauncher_showAutofillSettings( | 16 Java_PreferencesLauncher_showAutofillSettings( |
14 base::android::AttachCurrentThread()); | 17 base::android::AttachCurrentThread()); |
15 } | 18 } |
16 | 19 |
17 } // android | 20 void PreferencesLauncher::ShowPasswordSettings() { |
18 } // chrome | 21 Java_PreferencesLauncher_showPasswordSettings( |
| 22 base::android::AttachCurrentThread()); |
| 23 } |
| 24 |
| 25 void PreferencesLauncher::OpenClearBrowsingData( |
| 26 content::WebContents* web_contents) { |
| 27 TabAndroid* tab = TabAndroid::FromWebContents(web_contents); |
| 28 DCHECK(tab); |
| 29 Java_PreferencesLauncher_openClearBrowsingData( |
| 30 base::android::AttachCurrentThread(), tab->GetJavaObject()); |
| 31 } |
| 32 |
| 33 } // namespace android |
| 34 } // namespace chrome |
OLD | NEW |