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

Side by Side 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, 8 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 "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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698