diff options
author | nednguyen <nednguyen@google.com> | 2015-11-25 08:24:57 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-25 16:25:47 +0000 |
commit | 0ef1733c5b8ecbb94215a49ec75a85915a19770f (patch) | |
tree | 1e8850e872e54a248723e8ccf7c88f864f835280 | |
parent | a1a79c3b62808689094fc72788443cd992942a96 (diff) | |
download | chromium_src-0ef1733c5b8ecbb94215a49ec75a85915a19770f.zip chromium_src-0ef1733c5b8ecbb94215a49ec75a85915a19770f.tar.gz chromium_src-0ef1733c5b8ecbb94215a49ec75a85915a19770f.tar.bz2 |
Revert of Revert: Enable Wallet metadata sync. (patchset #2 id:20001 of https://codereview.chromium.org/1473683003/ )
Reason for revert:
Original benchmark was not the cause of regression.
Original issue's description:
> Revert: Enable Wallet metadata sync.
>
> This reverts commit fcb4cba37994f35d045e8089c31d3ae2fe54f410
> speculatively to check whether page cycler benchmark recovers.
>
> BUG=558554
> TBR=estade@chromium.org, zea@chromium.org, nednguyen@chromium.org
>
> Committed: https://crrev.com/3e5b3d82d1c7e3dd1284309bf61da1241a7d065c
> Cr-Commit-Position: refs/heads/master@{#361512}
TBR=estade@chromium.org,zea@chromium.org,rouslan@chromium.org
NOPRESUBMIT=true
NOTREECHECKS=true
NOTRY=true
BUG=558554
Review URL: https://codereview.chromium.org/1477853002
Cr-Commit-Position: refs/heads/master@{#361672}
5 files changed, 8 insertions, 15 deletions
diff --git a/chrome/browser/sync/profile_sync_service_factory_unittest.cc b/chrome/browser/sync/profile_sync_service_factory_unittest.cc index cbcce92..84ba8e7 100644 --- a/chrome/browser/sync/profile_sync_service_factory_unittest.cc +++ b/chrome/browser/sync/profile_sync_service_factory_unittest.cc @@ -48,6 +48,7 @@ class ProfileSyncServiceFactoryTest : public testing::Test { datatypes.push_back(syncer::AUTOFILL); datatypes.push_back(syncer::AUTOFILL_PROFILE); datatypes.push_back(syncer::AUTOFILL_WALLET_DATA); + datatypes.push_back(syncer::AUTOFILL_WALLET_METADATA); datatypes.push_back(syncer::BOOKMARKS); datatypes.push_back(syncer::DEVICE_INFO); datatypes.push_back(syncer::FAVICON_TRACKING); diff --git a/chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc b/chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc index 0cfc95f..69619dd 100644 --- a/chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc +++ b/chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc @@ -137,7 +137,7 @@ IN_PROC_BROWSER_TEST_F(SingleClientWalletSyncTest, EnabledViaPreference) { syncer::AUTOFILL_WALLET_DATA)); // TODO(pvalenzuela): Assert that the local root node for AUTOFILL_WALLET_DATA // exists. - ASSERT_FALSE(GetClient(0)->service()->GetActiveDataTypes().Has( + ASSERT_TRUE(GetClient(0)->service()->GetActiveDataTypes().Has( syncer::AUTOFILL_WALLET_METADATA)); } @@ -157,7 +157,7 @@ IN_PROC_BROWSER_TEST_F(SingleClientWalletSyncTest, ASSERT_TRUE(SetupSync()) << "SetupSync() failed"; ASSERT_TRUE(GetClient(0)->service()->GetActiveDataTypes().Has( syncer::AUTOFILL_WALLET_DATA)); - ASSERT_FALSE(GetClient(0)->service()->GetActiveDataTypes().Has( + ASSERT_TRUE(GetClient(0)->service()->GetActiveDataTypes().Has( syncer::AUTOFILL_WALLET_METADATA)); } @@ -185,7 +185,7 @@ IN_PROC_BROWSER_TEST_F(SingleClientWalletSyncTest, ASSERT_FALSE(enabled_checker.TimedOut()); ASSERT_TRUE(GetClient(0)->service()->GetActiveDataTypes().Has( syncer::AUTOFILL_WALLET_DATA)); - ASSERT_FALSE(GetClient(0)->service()->GetActiveDataTypes().Has( + ASSERT_TRUE(GetClient(0)->service()->GetActiveDataTypes().Has( syncer::AUTOFILL_WALLET_METADATA)); // Then disable the experiment. diff --git a/components/autofill/core/common/autofill_switches.cc b/components/autofill/core/common/autofill_switches.cc index cefd0ec..63edd24 100644 --- a/components/autofill/core/common/autofill_switches.cc +++ b/components/autofill/core/common/autofill_switches.cc @@ -71,10 +71,6 @@ const char kEnableSingleClickAutofill[] = "enable-single-click-autofill"; const char kEnableSuggestionsWithSubstringMatch[] = "enable-suggestions-with-substring-match"; -// Enables syncing usage counts and last use dates of Wallet addresses and -// cards. -const char kEnableWalletMetadataSync[] = "enable-wallet-metadata-sync"; - // Ignores autocomplete="off" for Autofill data (profiles + credit cards). const char kIgnoreAutocompleteOffForAutofill[] = "ignore-autocomplete-off-autofill"; diff --git a/components/autofill/core/common/autofill_switches.h b/components/autofill/core/common/autofill_switches.h index 8be409a..1c34827 100644 --- a/components/autofill/core/common/autofill_switches.h +++ b/components/autofill/core/common/autofill_switches.h @@ -28,7 +28,6 @@ extern const char kEnableOfferUploadCreditCards[]; extern const char kEnablePasswordGeneration[]; extern const char kEnableSingleClickAutofill[]; extern const char kEnableSuggestionsWithSubstringMatch[]; -extern const char kEnableWalletMetadataSync[]; extern const char kIgnoreAutocompleteOffForAutofill[]; extern const char kLocalHeuristicsOnlyForPasswordGeneration[]; extern const char kShowAutofillTypePredictions[]; diff --git a/components/browser_sync/browser/profile_sync_components_factory_impl.cc b/components/browser_sync/browser/profile_sync_components_factory_impl.cc index 4678bbf..cca0b29 100644 --- a/components/browser_sync/browser/profile_sync_components_factory_impl.cc +++ b/components/browser_sync/browser/profile_sync_components_factory_impl.cc @@ -79,11 +79,7 @@ syncer::ModelTypeSet GetDisabledTypesFromCommandLine( syncer::ModelTypeSet GetEnabledTypesFromCommandLine( const base::CommandLine& command_line) { - syncer::ModelTypeSet enabled_types; - if (command_line.HasSwitch(autofill::switches::kEnableWalletMetadataSync)) - enabled_types.Put(syncer::AUTOFILL_WALLET_METADATA); - - return enabled_types; + return syncer::ModelTypeSet(); } } // namespace @@ -167,8 +163,9 @@ void ProfileSyncComponentsFactoryImpl::RegisterCommonDataTypes( } // Wallet metadata sync depends on Wallet data sync. Register if Wallet data - // is syncing and metadata sync is explicitly enabled. - if (!wallet_disabled && enabled_types.Has(syncer::AUTOFILL_WALLET_METADATA)) { + // is syncing and metadata sync is not explicitly disabled. + if (!wallet_disabled && + !disabled_types.Has(syncer::AUTOFILL_WALLET_METADATA)) { sync_service->RegisterDataTypeController( new browser_sync::AutofillWalletDataTypeController( ui_thread_, db_thread_, error_callback, sync_client_, |