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

Unified Diff: chrome/browser/autofill/android/personal_data_manager_android.cc

Issue 858053003: Minor changes to still-unfinal chrome://settings/autofill wallet UI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: actual pref Created 5 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/resources/options/autofill_options.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/android/personal_data_manager_android.cc
diff --git a/chrome/browser/autofill/android/personal_data_manager_android.cc b/chrome/browser/autofill/android/personal_data_manager_android.cc
index 1b3f11a6c594f991b1bf9c59d1ebab4279fd00db..bf0430fa33f2851f2659d5ef61ecc1991f7516a5 100644
--- a/chrome/browser/autofill/android/personal_data_manager_android.cc
+++ b/chrome/browser/autofill/android/personal_data_manager_android.cc
@@ -354,13 +354,13 @@ static jboolean IsWalletImportFeatureAvailable(JNIEnv* env, jclass clazz) {
// Returns whether the Wallet import feature is enabled.
static jboolean IsWalletImportEnabled(JNIEnv* env, jclass clazz) {
- // TODO(estade): there is no pref yet, so just pretend yes.
- return true;
+ return GetPrefs()->GetBoolean(autofill::prefs::kAutofillWalletImportEnabled);
}
// Enables or disables the Wallet import feature.
static void SetWalletImportEnabled(JNIEnv* env, jclass clazz, jboolean enable) {
- // TODO(estade): there is no pref yet, so no-op.
+ return GetPrefs()->SetBoolean(autofill::prefs::kAutofillWalletImportEnabled,
please use gerrit instead 2015/01/22 01:02:53 no need for "return" here.
Evan Stade 2015/01/22 01:09:04 Done.
+ enable);
}
// Returns an ISO 3166-1-alpha-2 country code for a |jcountry_name| using
« no previous file with comments | « no previous file | chrome/browser/resources/options/autofill_options.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698