Commit f8d01800 authored by Jared Saul's avatar Jared Saul Committed by Commit Bot

[AF] Enable AutofillEnableAccountWalletStorage by default

Also cleans up the fieldtrial_testing_config entry for the
SyncButterWallet launch now that it's enabled ToT (and 100% launched).

Per request, not going to clean up the code usage of the flag quite yet
because Butter for Mobile may be coming in the near future.

Bug: 983940
Change-Id: Icfb628cb509c77960d7686c3ad8c5a6161ca7547
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2092064
Commit-Queue: Jared Saul <jsaul@google.com>
Reviewed-by: default avatarDominic Battré <battre@chromium.org>
Reviewed-by: default avatarChristian Dullweber <dullweber@chromium.org>
Reviewed-by: default avatarRobert Kaplow <rkaplow@chromium.org>
Reviewed-by: default avatarMarc Treib <treib@chromium.org>
Cr-Commit-Position: refs/heads/master@{#752621}
parent d2728577
...@@ -52,6 +52,7 @@ ...@@ -52,6 +52,7 @@
#include "chrome/browser/ssl/stateful_ssl_host_state_delegate_factory.h" #include "chrome/browser/ssl/stateful_ssl_host_state_delegate_factory.h"
#include "chrome/browser/storage/durable_storage_permission_context.h" #include "chrome/browser/storage/durable_storage_permission_context.h"
#include "chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h" #include "chrome/browser/subresource_filter/subresource_filter_profile_context_factory.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/translate/chrome_translate_client.h" #include "chrome/browser/translate/chrome_translate_client.h"
#include "chrome/common/chrome_features.h" #include "chrome/common/chrome_features.h"
#include "chrome/common/pref_names.h" #include "chrome/common/pref_names.h"
...@@ -1600,6 +1601,9 @@ TEST_F(ChromeBrowsingDataRemoverDelegateTest, ...@@ -1600,6 +1601,9 @@ TEST_F(ChromeBrowsingDataRemoverDelegateTest,
TEST_F(ChromeBrowsingDataRemoverDelegateTest, AutofillRemovalLastHour) { TEST_F(ChromeBrowsingDataRemoverDelegateTest, AutofillRemovalLastHour) {
GetProfile()->CreateWebDataService(); GetProfile()->CreateWebDataService();
RemoveAutofillTester tester(GetProfile()); RemoveAutofillTester tester(GetProfile());
// Initialize sync service so that PersonalDatabaseHelper::server_database_
// gets initialized:
ProfileSyncServiceFactory::GetForProfile(GetProfile());
ASSERT_FALSE(tester.HasProfile()); ASSERT_FALSE(tester.HasProfile());
tester.AddProfilesAndCards(); tester.AddProfilesAndCards();
...@@ -1621,6 +1625,9 @@ TEST_F(ChromeBrowsingDataRemoverDelegateTest, AutofillRemovalLastHour) { ...@@ -1621,6 +1625,9 @@ TEST_F(ChromeBrowsingDataRemoverDelegateTest, AutofillRemovalLastHour) {
TEST_F(ChromeBrowsingDataRemoverDelegateTest, AutofillRemovalOlderThan30Days) { TEST_F(ChromeBrowsingDataRemoverDelegateTest, AutofillRemovalOlderThan30Days) {
GetProfile()->CreateWebDataService(); GetProfile()->CreateWebDataService();
RemoveAutofillTester tester(GetProfile()); RemoveAutofillTester tester(GetProfile());
// Initialize sync service so that PersonalDatabaseHelper::server_database_
// gets initialized:
ProfileSyncServiceFactory::GetForProfile(GetProfile());
const base::Time kNow = base::Time::Now(); const base::Time kNow = base::Time::Now();
const base::Time k30DaysOld = kNow - base::TimeDelta::FromDays(30); const base::Time k30DaysOld = kNow - base::TimeDelta::FromDays(30);
...@@ -1658,6 +1665,9 @@ TEST_F(ChromeBrowsingDataRemoverDelegateTest, AutofillRemovalOlderThan30Days) { ...@@ -1658,6 +1665,9 @@ TEST_F(ChromeBrowsingDataRemoverDelegateTest, AutofillRemovalOlderThan30Days) {
TEST_F(ChromeBrowsingDataRemoverDelegateTest, AutofillRemovalEverything) { TEST_F(ChromeBrowsingDataRemoverDelegateTest, AutofillRemovalEverything) {
GetProfile()->CreateWebDataService(); GetProfile()->CreateWebDataService();
RemoveAutofillTester tester(GetProfile()); RemoveAutofillTester tester(GetProfile());
// Initialize sync service so that PersonalDatabaseHelper::server_database_
// gets initialized:
ProfileSyncServiceFactory::GetForProfile(GetProfile());
ASSERT_FALSE(tester.HasProfile()); ASSERT_FALSE(tester.HasProfile());
tester.AddProfilesAndCards(); tester.AddProfilesAndCards();
...@@ -1678,6 +1688,9 @@ TEST_F(ChromeBrowsingDataRemoverDelegateTest, ...@@ -1678,6 +1688,9 @@ TEST_F(ChromeBrowsingDataRemoverDelegateTest,
StrikeDatabaseEmptyOnAutofillRemoveEverything) { StrikeDatabaseEmptyOnAutofillRemoveEverything) {
GetProfile()->CreateWebDataService(); GetProfile()->CreateWebDataService();
RemoveAutofillTester tester(GetProfile()); RemoveAutofillTester tester(GetProfile());
// Initialize sync service so that PersonalDatabaseHelper::server_database_
// gets initialized:
ProfileSyncServiceFactory::GetForProfile(GetProfile());
ASSERT_FALSE(tester.HasProfile()); ASSERT_FALSE(tester.HasProfile());
tester.AddProfilesAndCards(); tester.AddProfilesAndCards();
...@@ -1703,6 +1716,9 @@ TEST_F(ChromeBrowsingDataRemoverDelegateTest, ...@@ -1703,6 +1716,9 @@ TEST_F(ChromeBrowsingDataRemoverDelegateTest,
AutofillOriginsRemovedWithHistory) { AutofillOriginsRemovedWithHistory) {
GetProfile()->CreateWebDataService(); GetProfile()->CreateWebDataService();
RemoveAutofillTester tester(GetProfile()); RemoveAutofillTester tester(GetProfile());
// Initialize sync service so that PersonalDatabaseHelper::server_database_
// gets initialized:
ProfileSyncServiceFactory::GetForProfile(GetProfile());
tester.AddProfilesAndCards(); tester.AddProfilesAndCards();
EXPECT_FALSE(tester.HasOrigin(std::string())); EXPECT_FALSE(tester.HasOrigin(std::string()));
......
...@@ -48,7 +48,15 @@ const base::Feature kAutofillCreditCardAssist{ ...@@ -48,7 +48,15 @@ const base::Feature kAutofillCreditCardAssist{
// Controls whether we download server credit cards to the ephemeral // Controls whether we download server credit cards to the ephemeral
// account-based storage when sync the transport is enabled. // account-based storage when sync the transport is enabled.
const base::Feature kAutofillEnableAccountWalletStorage{ const base::Feature kAutofillEnableAccountWalletStorage{
"AutofillEnableAccountWalletStorage", base::FEATURE_DISABLED_BY_DEFAULT}; "AutofillEnableAccountWalletStorage",
#if defined(OS_CHROMEOS) || defined(OS_ANDROID) || defined(OS_IOS)
// Wallet transport is only currently available on Win/Mac/Linux.
// (Somehow, swapping this check makes iOS unhappy?)
base::FEATURE_DISABLED_BY_DEFAULT
#else
base::FEATURE_ENABLED_BY_DEFAULT
#endif
};
// Controls whether we use COMPANY as part of Autofill // Controls whether we use COMPANY as part of Autofill
const base::Feature kAutofillEnableCompanyName{ const base::Feature kAutofillEnableCompanyName{
......
...@@ -5331,28 +5331,6 @@ ...@@ -5331,28 +5331,6 @@
] ]
} }
], ],
"SyncButterWallet": [
{
"platforms": [
"linux",
"mac",
"windows"
],
"experiments": [
{
"name": "Enabled_DownstreamBehindButton",
"enable_features": [
"AutofillEnableAccountWalletStorage",
"AutofillSaveCardImprovedUserConsent",
"SyncSupportSecondaryAccount"
],
"disable_features": [
"AlwaysShowServerCardsInSyncTransport"
]
}
]
}
],
"SyncInstanceIDTokenTTL": [ "SyncInstanceIDTokenTTL": [
{ {
"platforms": [ "platforms": [
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment