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

Unified Diff: chrome/browser/android/preferences/preferences_launcher.cc

Issue 2768023002: Move remaining @CalledByNative methods out of ChromeApplication. (Closed)
Patch Set: Use DISALLOW_IMPLICIT_CONSTRUCTORS instead of DISALLOW_COPY_AND_ASSIGN Created 3 years, 9 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
Index: chrome/browser/android/preferences/preferences_launcher.cc
diff --git a/chrome/browser/android/preferences/preferences_launcher.cc b/chrome/browser/android/preferences/preferences_launcher.cc
index c364e11a72e689228dfb11334ae9d2371f3479b7..9fa570f69643b8319edfeee2360c479fb5c5e059 100644
--- a/chrome/browser/android/preferences/preferences_launcher.cc
+++ b/chrome/browser/android/preferences/preferences_launcher.cc
@@ -4,6 +4,9 @@
#include "chrome/browser/android/preferences/preferences_launcher.h"
+#include "base/android/jni_android.h"
+#include "chrome/browser/android/tab_android.h"
+#include "content/public/browser/web_contents.h"
#include "jni/PreferencesLauncher_jni.h"
namespace chrome {
@@ -14,5 +17,18 @@ void PreferencesLauncher::ShowAutofillSettings() {
base::android::AttachCurrentThread());
}
-} // android
-} // chrome
+void PreferencesLauncher::ShowPasswordSettings() {
+ Java_PreferencesLauncher_showPasswordSettings(
+ base::android::AttachCurrentThread());
+}
+
+void PreferencesLauncher::OpenClearBrowsingData(
+ content::WebContents* web_contents) {
+ TabAndroid* tab = TabAndroid::FromWebContents(web_contents);
+ DCHECK(tab);
+ Java_PreferencesLauncher_openClearBrowsingData(
+ base::android::AttachCurrentThread(), tab->GetJavaObject());
+}
+
+} // namespace android
+} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698