summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-02 16:58:03 +0000
committerstuartmorgan@chromium.org <stuartmorgan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-02 16:58:03 +0000
commit75d112d2ab997e2e998007733602c7d1ca72f9ff (patch)
tree86a41a0bedd9b42118c5f69c2986f65bf115cca4 /chrome/common
parent28a750d892a0afd056e6d69cb7da99db8910d090 (diff)
downloadchromium_src-75d112d2ab997e2e998007733602c7d1ca72f9ff.zip
chromium_src-75d112d2ab997e2e998007733602c7d1ca72f9ff.tar.gz
chromium_src-75d112d2ab997e2e998007733602c7d1ca72f9ff.tar.bz2
Implement Add and Update for PasswordStoreMac.
Modify LoginDatabase slightly to give PasswordStoreMac enough information to do the right thing. Add creator code for keychain items we create, and unit tests to make sure. BUG=11745 TEST=Visit a site for which you have a password in the Keychain. Type your username, unfocus the field, and then log in with the filled password. Log out, return to the login page, and the username and password should now autofill without user interaction. Review URL: http://codereview.chromium.org/151176 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19822 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/sqlite_utils.cc5
-rw-r--r--chrome/common/sqlite_utils.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/sqlite_utils.cc b/chrome/common/sqlite_utils.cc
index dc730de..5c5e130 100644
--- a/chrome/common/sqlite_utils.cc
+++ b/chrome/common/sqlite_utils.cc
@@ -221,6 +221,11 @@ sqlite_int64 SQLStatement::last_insert_rowid() {
return sqlite3_last_insert_rowid(db_handle());
}
+int SQLStatement::changes() {
+ DCHECK(stmt_);
+ return sqlite3_changes(db_handle());
+}
+
sqlite3* SQLStatement::db_handle() {
DCHECK(stmt_);
return sqlite3_db_handle(stmt_);
diff --git a/chrome/common/sqlite_utils.h b/chrome/common/sqlite_utils.h
index 836ad15..bacbef0 100644
--- a/chrome/common/sqlite_utils.h
+++ b/chrome/common/sqlite_utils.h
@@ -215,6 +215,7 @@ class SQLStatement : public scoped_sqlite3_stmt_ptr {
int step();
int reset();
sqlite_int64 last_insert_rowid();
+ int changes();
sqlite3* db_handle();
//