Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Unified Diff: components/browsing_data/core/counters/passwords_counter.cc

Issue 2855623005: Move browsing_data counter sync tests to separate file (Closed)
Patch Set: fixes Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/browsing_data/core/counters/passwords_counter.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browsing_data/core/counters/passwords_counter.cc
diff --git a/components/browsing_data/core/counters/passwords_counter.cc b/components/browsing_data/core/counters/passwords_counter.cc
index 5bc03978b99223bc19f4b292836129cf4cef54f5..b78cd06b8f2119bd593c89369ad85c7ddd7af87f 100644
--- a/components/browsing_data/core/counters/passwords_counter.cc
+++ b/components/browsing_data/core/counters/passwords_counter.cc
@@ -63,8 +63,8 @@ void PasswordsCounter::OnGetPasswordStoreResults(
[start](const std::unique_ptr<autofill::PasswordForm>& form) {
return form->date_created >= start;
});
- ReportResult(base::MakeUnique<PasswordResult>(this, num_passwords,
- password_sync_enabled_));
+ ReportResult(base::MakeUnique<SyncResult>(this, num_passwords,
+ password_sync_enabled_));
}
void PasswordsCounter::OnLoginsChanged(
@@ -81,14 +81,4 @@ void PasswordsCounter::OnStateChanged(syncer::SyncService* sync) {
}
}
-// PasswordsCounter::PasswordResult
-
-PasswordsCounter::PasswordResult::PasswordResult(const PasswordsCounter* source,
- ResultInt value,
- bool password_sync_enabled)
- : FinishedResult(source, value),
- password_sync_enabled_(password_sync_enabled) {}
-
-PasswordsCounter::PasswordResult::~PasswordResult() {}
-
} // namespace browsing_data
« no previous file with comments | « components/browsing_data/core/counters/passwords_counter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698