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

Unified Diff: sync/syncable/directory_backing_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 | « sql/statement_unittest.cc ('k') | webkit/appcache/appcache_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/directory_backing_store.cc
diff --git a/sync/syncable/directory_backing_store.cc b/sync/syncable/directory_backing_store.cc
index 168561004e286ced2ee1cfd77e1b6e1126df6d8e..fda6d71a382510c8d43dd821751a180a4b47feed 100644
--- a/sync/syncable/directory_backing_store.cc
+++ b/sync/syncable/directory_backing_store.cc
@@ -163,7 +163,7 @@ bool DirectoryBackingStore::DeleteEntries(const MetahandleSet& handles) {
statement.BindInt64(0, *i);
if (!statement.Run())
return false;
- statement.Reset();
+ statement.Reset(true);
}
return true;
}
@@ -227,7 +227,7 @@ bool DirectoryBackingStore::SaveChanges(
if (!s2.Run())
return false;
DCHECK_EQ(db_->GetLastChangeCount(), 1);
- s2.Reset();
+ s2.Reset(true);
}
}
@@ -499,7 +499,7 @@ bool DirectoryBackingStore::SaveEntryToDB(const EntryKernel& entry) {
save_entry_statement_.Assign(
db_->GetUniqueStatement(query.c_str()));
} else {
- save_entry_statement_.Reset();
+ save_entry_statement_.Reset(true);
}
BindFields(entry, &save_entry_statement_);
@@ -583,7 +583,7 @@ bool DirectoryBackingStore::MigrateToSpecifics(
update.BindInt64(1, metahandle);
if (!update.Run())
return false;
- update.Reset();
+ update.Reset(true);
}
return query.Succeeded();
}
@@ -868,7 +868,7 @@ bool DirectoryBackingStore::MigrateVersion74To75() {
update.BindBool(2, query.ColumnBool(2));
if (!update.Run())
return false;
- update.Reset();
+ update.Reset(true);
}
}
if (!query.Succeeded())
« no previous file with comments | « sql/statement_unittest.cc ('k') | webkit/appcache/appcache_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698