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

Unified Diff: chrome/browser/password_manager/password_store_x.cc

Issue 335893002: Support to remove passwords by date_synced timestamp. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync integration tests Created 6 years, 6 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
Index: chrome/browser/password_manager/password_store_x.cc
diff --git a/chrome/browser/password_manager/password_store_x.cc b/chrome/browser/password_manager/password_store_x.cc
index 8a6fc746d4f276041f6d66dadd272219c1f7412b..bdcc34c1a83b29f26870a6067845c78ca98a961b 100644
--- a/chrome/browser/password_manager/password_store_x.cc
+++ b/chrome/browser/password_manager/password_store_x.cc
@@ -110,6 +110,21 @@ PasswordStoreChangeList PasswordStoreX::RemoveLoginsCreatedBetweenImpl(
return changes;
}
+PasswordStoreChangeList PasswordStoreX::RemoveLoginsSyncedBetweenImpl(
+ const base::Time& delete_begin,
+ const base::Time& delete_end) {
+ CheckMigration();
+ PasswordStoreChangeList changes;
+ if (use_native_backend() &&
+ backend_->RemoveLoginsSyncedBetween(delete_begin, delete_end, &changes)) {
Garrett Casto 2014/06/17 17:57:36 Seems like we should standardize how we report cha
vasilii 2014/06/18 10:00:57 You are right. The plan is to remove GetLoginsCrea
+ allow_fallback_ = false;
Garrett Casto 2014/06/17 17:57:36 It also seems like it would be nice if we had UMA
vasilii 2014/06/18 10:00:57 http://crbug.com/386079. The new method will be ca
+ } else if (allow_default_store()) {
+ changes = PasswordStoreDefault::RemoveLoginsSyncedBetweenImpl(delete_begin,
+ delete_end);
+ }
+ return changes;
+}
+
namespace {
struct LoginLessThan {
bool operator()(const PasswordForm* a, const PasswordForm* b) {

Powered by Google App Engine
This is Rietveld 408576698