Commit f2d4cd89 authored by dvadym's avatar dvadym Committed by Commit bot

Postpone collecting passwords UMA metrics.

BUG=453835

Review URL: https://codereview.chromium.org/887043004

Cr-Commit-Position: refs/heads/master@{#314350}
parent 9c254381
...@@ -160,10 +160,15 @@ void PasswordStore::GetBlacklistLogins(PasswordStoreConsumer* consumer) { ...@@ -160,10 +160,15 @@ void PasswordStore::GetBlacklistLogins(PasswordStoreConsumer* consumer) {
void PasswordStore::ReportMetrics(const std::string& sync_username, void PasswordStore::ReportMetrics(const std::string& sync_username,
bool custom_passphrase_sync_enabled) { bool custom_passphrase_sync_enabled) {
ScheduleTask(base::Bind(&PasswordStore::ReportMetricsImpl, scoped_refptr<base::SingleThreadTaskRunner> task_runner(
this, GetBackgroundTaskRunner());
sync_username, if (task_runner) {
custom_passphrase_sync_enabled)); base::Closure task =
base::Bind(&PasswordStore::ReportMetricsImpl, this, sync_username,
custom_passphrase_sync_enabled);
task_runner->PostDelayedTask(FROM_HERE, task,
base::TimeDelta::FromSeconds(30));
}
} }
void PasswordStore::AddObserver(Observer* observer) { void PasswordStore::AddObserver(Observer* observer) {
......
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