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

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

Issue 151176: Implement Add and Update for PasswordStoreMac.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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/login_database.cc
===================================================================
--- chrome/browser/password_manager/login_database.cc (revision 19737)
+++ chrome/browser/password_manager/login_database.cc (working copy)
@@ -159,7 +159,7 @@
return true;
}
-bool LoginDatabase::UpdateLogin(const PasswordForm& form) {
+bool LoginDatabase::UpdateLogin(const PasswordForm& form, int* items_changed) {
SQLStatement s;
if (s.prepare(db_, "UPDATE logins SET "
"action_url = ?, "
@@ -191,6 +191,9 @@
NOTREACHED();
return false;
}
+ if (items_changed) {
+ *items_changed = s.changes();
+ }
return true;
}

Powered by Google App Engine
This is Rietveld 408576698