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

Unified Diff: chrome/browser/password_manager/native_backend_gnome_x.h

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/native_backend_gnome_x.h
diff --git a/chrome/browser/password_manager/native_backend_gnome_x.h b/chrome/browser/password_manager/native_backend_gnome_x.h
index c5d2c2ecd40e5ed1acf8fc7063d1c45ff340d28a..3bedf0c385e8e45fa4c75948a72f9264460c5bd1 100644
--- a/chrome/browser/password_manager/native_backend_gnome_x.h
+++ b/chrome/browser/password_manager/native_backend_gnome_x.h
@@ -87,12 +87,15 @@ class NativeBackendGnome : public PasswordStoreX::NativeBackend,
const autofill::PasswordForm& form,
password_manager::PasswordStoreChangeList* changes) OVERRIDE;
virtual bool RemoveLogin(const autofill::PasswordForm& form) OVERRIDE;
- virtual bool RemoveLoginsCreatedBetween(
- const base::Time& delete_begin, const base::Time& delete_end) OVERRIDE;
+ virtual bool RemoveLoginsCreatedBetween(base::Time delete_begin,
+ base::Time delete_end) OVERRIDE;
vabr (Chromium) 2014/06/17 15:28:40 Please also comment on the special meaning of the
vabr (Chromium) 2014/06/17 16:53:30 The appropriate place for the comment is actually
vasilii 2014/06/17 17:24:14 Done.
+ virtual bool RemoveLoginsSyncedBetween(
+ base::Time delete_begin,
+ base::Time delete_end,
+ password_manager::PasswordStoreChangeList* changes) OVERRIDE;
virtual bool GetLogins(const autofill::PasswordForm& form,
PasswordFormList* forms) OVERRIDE;
- virtual bool GetLoginsCreatedBetween(const base::Time& get_begin,
- const base::Time& get_end,
+ virtual bool GetLoginsCreatedBetween(base::Time get_begin, base::Time get_end,
vabr (Chromium) 2014/06/17 15:28:40 optional nit: Is this formatting according to clan
vasilii 2014/06/17 17:24:14 Done.
PasswordFormList* forms) OVERRIDE;
virtual bool GetAutofillableLogins(PasswordFormList* forms) OVERRIDE;
virtual bool GetBlacklistLogins(PasswordFormList* forms) OVERRIDE;
@@ -107,6 +110,16 @@ class NativeBackendGnome : public PasswordStoreX::NativeBackend,
// Helper for GetLoginsCreatedBetween().
bool GetAllLogins(PasswordFormList* forms);
+ // Retrieves password created/synced in the time interval.
vabr (Chromium) 2014/06/17 15:28:40 Please comment on the return value (also below).
vasilii 2014/06/17 17:24:14 Done.
+ bool GetLoginsBetween(base::Time get_begin, base::Time get_end,
+ bool date_is_creation,
vabr (Chromium) 2014/06/17 15:28:40 |date_is_creation| would deserve an explanation. I
vasilii 2014/06/17 17:24:14 Done.
+ PasswordFormList* forms);
+
+ // Removes password created/synced in the time interval.
+ bool RemoveLoginsBetween(base::Time get_begin, base::Time get_end,
+ bool date_is_creation,
+ password_manager::PasswordStoreChangeList* changes);
+
// Generates a profile-specific app string based on profile_id_.
std::string GetProfileSpecificAppString() const;

Powered by Google App Engine
This is Rietveld 408576698