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

Side by Side Diff: chrome/browser/android/preferences/preferences_launcher.cc

Issue 2768023002: Move remaining @CalledByNative methods out of ChromeApplication. (Closed)
Patch Set: 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 unified diff | Download patch
OLDNEW
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 "chrome/browser/android/tab_android.h"
8 #include "content/public/browser/web_contents.h"
7 #include "jni/PreferencesLauncher_jni.h" 9 #include "jni/PreferencesLauncher_jni.h"
8 10
9 namespace chrome { 11 namespace chrome {
10 namespace android { 12 namespace android {
11 13
12 void PreferencesLauncher::ShowAutofillSettings() { 14 void PreferencesLauncher::ShowAutofillSettings() {
13 Java_PreferencesLauncher_showAutofillSettings( 15 Java_PreferencesLauncher_showAutofillSettings(
14 base::android::AttachCurrentThread()); 16 base::android::AttachCurrentThread());
15 } 17 }
16 18
19 void PreferencesLauncher::ShowPasswordSettings() {
20 Java_PreferencesLauncher_showPasswordSettings(
21 base::android::AttachCurrentThread());
22 }
23
24 void PreferencesLauncher::OpenClearBrowsingData(
25 content::WebContents* web_contents) {
26 TabAndroid* tab = TabAndroid::FromWebContents(web_contents);
27 DCHECK(tab);
28 Java_PreferencesLauncher_openClearBrowsingData(
29 base::android::AttachCurrentThread(), tab->GetJavaObject());
30 }
31
17 } // android 32 } // android
18 } // chrome 33 } // chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698