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

Unified Diff: webkit/database/quota_table.cc

Issue 9365030: More SQL statement usage regularization. Back-touch some (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 10 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 | « webkit/database/databases_table.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/database/quota_table.cc
diff --git a/webkit/database/quota_table.cc b/webkit/database/quota_table.cc
index 2845b08172d0bf1bac092d40ed8122c9cd44dd83..9f49200f38c096818a18b247ac12f0938a640058 100644
--- a/webkit/database/quota_table.cc
+++ b/webkit/database/quota_table.cc
@@ -25,7 +25,6 @@ int64 QuotaTable::GetOriginQuota(const string16& origin_identifier) {
sql::Statement statement(db_->GetCachedStatement(
SQL_FROM_HERE, "SELECT quota FROM Quota WHERE origin = ?"));
statement.BindString16(0, origin_identifier);
-
if (statement.Step()) {
return statement.ColumnInt64(0);
}
@@ -42,7 +41,6 @@ bool QuotaTable::SetOriginQuota(const string16& origin_identifier,
SQL_FROM_HERE, "REPLACE INTO Quota VALUES (?, ?)"));
replace_statement.BindString16(0, origin_identifier);
replace_statement.BindInt64(1, quota);
-
return replace_statement.Run();
}
« no previous file with comments | « webkit/database/databases_table.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698