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

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

Issue 1020303007: Hide Autofill Wallet checkbox when not syncing autofill data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: preferred Created 5 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
« no previous file with comments | « no previous file | chrome/browser/autofill/options_util.h » ('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 b6214efa1edeb18edf182f107f104e4e26153584..d0ef526670601020f76f3132eeb01047213523f8 100644
--- a/chrome/browser/autofill/android/personal_data_manager_android.cc
+++ b/chrome/browser/autofill/android/personal_data_manager_android.cc
@@ -11,12 +11,11 @@
#include "base/prefs/pref_service.h"
#include "base/strings/stringprintf.h"
#include "base/strings/utf_string_conversions.h"
+#include "chrome/browser/autofill/options_util.h"
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_manager.h"
-#include "chrome/browser/sync/profile_sync_service.h"
-#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/common/pref_names.h"
#include "components/autofill/core/browser/autofill_country.h"
#include "components/autofill/core/browser/autofill_type.h"
@@ -339,13 +338,7 @@ static jboolean IsAutofillManaged(JNIEnv* env, jclass clazz) {
// Returns whether the Wallet import feature is available.
static jboolean IsWalletImportFeatureAvailable(JNIEnv* env, jclass clazz) {
- // TODO(estade): what to do in the IsManaged case?
- ProfileSyncService* service =
- ProfileSyncServiceFactory::GetInstance()->GetForProfile(GetProfile());
- PersonalDataManager* pdm = PersonalDataManagerFactory::GetForProfile(
- GetProfile());
- return service && service->IsSyncEnabledAndLoggedIn() &&
- pdm->IsExperimentalWalletIntegrationEnabled();
+ return WalletIntegrationAvailableForProfile(GetProfile());
}
// Returns whether the Wallet import feature is enabled.
« no previous file with comments | « no previous file | chrome/browser/autofill/options_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698