Commit 59dbddfa authored by Vasilii Sukhanov's avatar Vasilii Sukhanov Committed by Commit Bot

Add debug log statements to BulkLeakCheckService.

Bug: 1049185
Change-Id: Id01689a83ca4130d224a9f3a8eb51a255e5ece16
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2091533Reviewed-by: default avatarJan Wilken Dörrie <jdoerrie@chromium.org>
Commit-Queue: Vasilii Sukhanov <vasilii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#748153}
parent aa597178
......@@ -21,6 +21,7 @@ BulkLeakCheckService::~BulkLeakCheckService() = default;
void BulkLeakCheckService::CheckUsernamePasswordPairs(
std::vector<password_manager::LeakCheckCredential> credentials) {
DVLOG(0) << "Bulk password check, start " << credentials.size();
if (bulk_leak_check_) {
DCHECK_EQ(State::kRunning, state_);
// The check is already running. Append the credentials to the list.
......@@ -47,6 +48,7 @@ void BulkLeakCheckService::CheckUsernamePasswordPairs(
}
void BulkLeakCheckService::Cancel() {
DVLOG(0) << "Bulk password check cancel";
if (!bulk_leak_check_) {
DCHECK_NE(State::kRunning, state_);
return;
......@@ -74,6 +76,7 @@ void BulkLeakCheckService::OnFinishedCredential(LeakCheckCredential credential,
// (3) Notify about new state. The clients may assume that if the state is
// idle then there won't be calls to OnLeakFound.
if (!GetPendingChecksCount()) {
DVLOG(0) << "Bulk password check finished";
state_ = State::kIdle;
bulk_leak_check_.reset();
}
......@@ -84,6 +87,7 @@ void BulkLeakCheckService::OnFinishedCredential(LeakCheckCredential credential,
}
void BulkLeakCheckService::OnError(LeakDetectionError error) {
DLOG(ERROR) << "Bulk password check error=" << static_cast<int>(error);
switch (error) {
case LeakDetectionError::kNotSignIn:
state_ = State::kSignedOut;
......
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