Commit ec759ea9 authored by Victor Hugo Vianna Silva's avatar Victor Hugo Vianna Silva Committed by Commit Bot

Remove duplicated ScopedAccountStorageSettingsUpdate

This removes an update that got accidentally duplicated in
https://chromium-review.googlesource.com/c/chromium/src/+/2014926/1..2

Change-Id: I2b5a92d083c4ca3bbe83dae60408549055384b0d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2111317Reviewed-by: default avatarMohamed Amir Yosef <mamir@chromium.org>
Commit-Queue: Victor Vianna <victorvianna@google.com>
Cr-Commit-Position: refs/heads/master@{#752015}
parent 1ebf2c91
...@@ -561,13 +561,6 @@ void SetDefaultPasswordStore(PrefService* pref_service, ...@@ -561,13 +561,6 @@ void SetDefaultPasswordStore(PrefService* pref_service,
} }
ScopedAccountStorageSettingsUpdate(pref_service, gaia_id) ScopedAccountStorageSettingsUpdate(pref_service, gaia_id)
.SetDefaultStore(default_store); .SetDefaultStore(default_store);
if (gaia_id.empty()) {
// Maybe the account went away since the UI was shown. This should be rare,
// but is ultimately harmless - just do nothing here.
return;
}
ScopedAccountStorageSettingsUpdate(pref_service, gaia_id)
.SetDefaultStore(default_store);
} }
void ClearAccountStorageSettingsForAllUsers(PrefService* pref_service) { void ClearAccountStorageSettingsForAllUsers(PrefService* pref_service) {
......
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