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

Unified Diff: chrome/browser/net/sqlite_server_bound_cert_store.cc

Issue 10171014: Changed to Reset(bool clear_bound_vars) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix mac build error. Created 8 years, 8 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
« no previous file with comments | « chrome/browser/net/sqlite_persistent_cookie_store.cc ('k') | chrome/browser/webdata/autofill_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/sqlite_server_bound_cert_store.cc
diff --git a/chrome/browser/net/sqlite_server_bound_cert_store.cc b/chrome/browser/net/sqlite_server_bound_cert_store.cc
index 69dea95c36f4dd7e4b4f156e15ad7d6a6c2340b4..e4a35e932a12b95917a3cd0d28ce01b8eaecd196 100644
--- a/chrome/browser/net/sqlite_server_bound_cert_store.cc
+++ b/chrome/browser/net/sqlite_server_bound_cert_store.cc
@@ -283,7 +283,7 @@ bool SQLiteServerBoundCertStore::Backend::EnsureDatabaseVersion() {
cert_from_db.data(), cert_from_db.size()));
if (cert) {
if (cur_version == 2) {
- update_expires_smt.Reset();
+ update_expires_smt.Reset(true);
update_expires_smt.BindInt64(0,
cert->valid_expiry().ToInternalValue());
update_expires_smt.BindString(1, origin);
@@ -294,7 +294,7 @@ bool SQLiteServerBoundCertStore::Backend::EnsureDatabaseVersion() {
}
}
- update_creation_smt.Reset();
+ update_creation_smt.Reset(true);
update_creation_smt.BindInt64(0, cert->valid_start().ToInternalValue());
update_creation_smt.BindString(1, origin);
if (!update_creation_smt.Run()) {
@@ -406,7 +406,7 @@ void SQLiteServerBoundCertStore::Backend::Commit() {
scoped_ptr<PendingOperation> po(*it);
switch (po->op()) {
case PendingOperation::CERT_ADD: {
- add_smt.Reset();
+ add_smt.Reset(true);
add_smt.BindString(0, po->cert().server_identifier());
const std::string& private_key = po->cert().private_key();
add_smt.BindBlob(1, private_key.data(), private_key.size());
@@ -420,7 +420,7 @@ void SQLiteServerBoundCertStore::Backend::Commit() {
break;
}
case PendingOperation::CERT_DELETE:
- del_smt.Reset();
+ del_smt.Reset(true);
del_smt.BindString(0, po->cert().server_identifier());
if (!del_smt.Run())
NOTREACHED() << "Could not delete a server bound cert from the DB.";
« no previous file with comments | « chrome/browser/net/sqlite_persistent_cookie_store.cc ('k') | chrome/browser/webdata/autofill_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698