summaryrefslogtreecommitdiff
path: root/lib/sync
diff options
context:
space:
mode:
authorGabriel Ivascu <ivascu.gabriel59@gmail.com>2017-08-01 03:26:13 +0300
committerMichael Catanzaro <mcatanzaro@igalia.com>2017-08-06 09:28:09 -0500
commit433365421a24bd8fe7ce45311d26d0890717d8bc (patch)
tree72284d6eb19ab200491dbabe2736a31dc27b3cf9 /lib/sync
parent76bc21649dd40980810ddf8caf8a898feab76bd0 (diff)
downloadepiphany-433365421a24bd8fe7ce45311d26d0890717d8bc.tar.gz
password-manager: Username and password fields are not needed in _forget()
Diffstat (limited to 'lib/sync')
-rw-r--r--lib/sync/ephy-password-manager.c9
-rw-r--r--lib/sync/ephy-password-manager.h4
2 files changed, 4 insertions, 9 deletions
diff --git a/lib/sync/ephy-password-manager.c b/lib/sync/ephy-password-manager.c
index ea48dbb54..46f482eb8 100644
--- a/lib/sync/ephy-password-manager.c
+++ b/lib/sync/ephy-password-manager.c
@@ -699,20 +699,17 @@ forget_cb (GSList *records,
void
ephy_password_manager_forget (EphyPasswordManager *self,
const char *hostname,
- const char *username,
- const char *username_field,
- const char *password_field)
+ const char *username)
{
g_return_if_fail (EPHY_IS_PASSWORD_MANAGER (self));
g_return_if_fail (hostname);
- g_return_if_fail (password_field);
- g_return_if_fail (!username_field || username);
+ g_return_if_fail (username);
/* synchronizable-deleted signal needs an EphySynchronizable object,
* therefore we need to obtain the password record first and then emit
* the signal before clearing the password from the secret schema. */
ephy_password_manager_query (self, hostname, username,
- username_field, password_field,
+ NULL, NULL,
forget_cb, self);
}
diff --git a/lib/sync/ephy-password-manager.h b/lib/sync/ephy-password-manager.h
index 70c08cde2..769fade56 100644
--- a/lib/sync/ephy-password-manager.h
+++ b/lib/sync/ephy-password-manager.h
@@ -63,9 +63,7 @@ void ephy_password_manager_query (EphyPasswor
gpointer user_data);
void ephy_password_manager_forget (EphyPasswordManager *self,
const char *hostname,
- const char *username,
- const char *username_field,
- const char *password_field);
+ const char *username);
void ephy_password_manager_forget_all (EphyPasswordManager *self);
/* Note: Below functions are deprecated and should not be used in newly written code.
* The only reason they still exist is that the profile migrator expects them. */