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

Side by Side Diff: chrome/browser/android/chrome_application.cc

Issue 2763133002: Move showAutofillSettings to PreferencesLauncher. (Closed)
Patch Set: Move settings @CalledByNative functions to PreferencesLauncher. 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/chrome_application.h" 5 #include "chrome/browser/android/chrome_application.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/android/context_utils.h" 9 #include "base/android/context_utils.h"
10 #include "base/android/jni_android.h" 10 #include "base/android/jni_android.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 namespace chrome { 97 namespace chrome {
98 namespace android { 98 namespace android {
99 99
100 // static 100 // static
101 bool ChromeApplication::RegisterBindings(JNIEnv* env) { 101 bool ChromeApplication::RegisterBindings(JNIEnv* env) {
102 return RegisterNativesImpl(env); 102 return RegisterNativesImpl(env);
103 } 103 }
104 104
105 void ChromeApplication::ShowAutofillSettings() {
106 Java_ChromeApplication_showAutofillSettings(
107 base::android::AttachCurrentThread(),
108 base::android::GetApplicationContext());
109 }
110
111 void ChromeApplication::ShowPasswordSettings() { 105 void ChromeApplication::ShowPasswordSettings() {
112 Java_ChromeApplication_showPasswordSettings( 106 Java_ChromeApplication_showPasswordSettings(
113 base::android::AttachCurrentThread(), 107 base::android::AttachCurrentThread(),
114 base::android::GetApplicationContext()); 108 base::android::GetApplicationContext());
115 } 109 }
116 110
117 void ChromeApplication::OpenClearBrowsingData( 111 void ChromeApplication::OpenClearBrowsingData(
118 content::WebContents* web_contents) { 112 content::WebContents* web_contents) {
119 TabAndroid* tab = TabAndroid::FromWebContents(web_contents); 113 TabAndroid* tab = TabAndroid::FromWebContents(web_contents);
120 DCHECK(tab); 114 DCHECK(tab);
121 Java_ChromeApplication_openClearBrowsingData( 115 Java_ChromeApplication_openClearBrowsingData(
122 base::android::AttachCurrentThread(), 116 base::android::AttachCurrentThread(),
123 base::android::GetApplicationContext(), tab->GetJavaObject()); 117 base::android::GetApplicationContext(), tab->GetJavaObject());
124 } 118 }
125 119
126 bool ChromeApplication::AreParentalControlsEnabled() { 120 bool ChromeApplication::AreParentalControlsEnabled() {
127 return Java_ChromeApplication_areParentalControlsEnabled( 121 return Java_ChromeApplication_areParentalControlsEnabled(
128 base::android::AttachCurrentThread(), 122 base::android::AttachCurrentThread(),
129 base::android::GetApplicationContext()); 123 base::android::GetApplicationContext());
130 } 124 }
131 125
132 } // namespace android 126 } // namespace android
133 } // namespace chrome 127 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/android/chrome_application.h ('k') | chrome/browser/android/preferences/preferences_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698