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

Issue 9005036: [sql] WARN_UNUSED_RESULT on Execute(). (Closed)

Created:
9 years ago by Scott Hess - ex-Googler
Modified:
9 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, erikwright (departed), brettw-cc_chromium.org, wtc, Randy Smith (Not in Mondays), darin-cc_chromium.org, rkn
Visibility:
Public.

Description

[sql] WARN_UNUSED_RESULT on Execute(). Goal is to encourage callers to handle errors, especially in cases like schema changes, where dropped errors can result in broken databases. Many CREATE INDEX calls where ignoring errors rather than checking if the index already existed before creating it. Recoded those to CREATE INDEX IF NOT EXISTS, which is for exactly this purpose. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=115725

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix compile error in quota_database_unittest.cc. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+100 lines, -86 lines) Patch
M chrome/browser/history/history_database.cc View 3 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/history/in_memory_database.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/history/shortcuts_database.cc View 1 chunk +2 lines, -9 lines 0 comments Download
M chrome/browser/history/text_database.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/history/thumbnail_database.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/history/thumbnail_database.cc View 7 chunks +19 lines, -20 lines 0 comments Download
M chrome/browser/history/url_database.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/history/url_database.cc View 2 chunks +16 lines, -9 lines 0 comments Download
M chrome/browser/history/visit_database.cc View 1 chunk +17 lines, -10 lines 0 comments Download
M chrome/browser/history/visitsegment_database.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/net/sqlite_persistent_cookie_store.cc View 2 chunks +12 lines, -10 lines 0 comments Download
M sql/connection.h View 4 chunks +11 lines, -5 lines 0 comments Download
M webkit/quota/quota_database_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Scott Hess - ex-Googler
wtc for chrome/browser/net/OWNERS .
9 years ago (2011-12-21 00:56:54 UTC) #1
wtc
LGTM. http://codereview.chromium.org/9005036/diff/1/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc (left): http://codereview.chromium.org/9005036/diff/1/chrome/browser/net/sqlite_persistent_cookie_store.cc#oldcode297 chrome/browser/net/sqlite_persistent_cookie_store.cc:297: // so we want those people to get ...
9 years ago (2011-12-21 01:16:16 UTC) #2
Scott Hess - ex-Googler
http://codereview.chromium.org/9005036/diff/1/chrome/browser/net/sqlite_persistent_cookie_store.cc File chrome/browser/net/sqlite_persistent_cookie_store.cc (left): http://codereview.chromium.org/9005036/diff/1/chrome/browser/net/sqlite_persistent_cookie_store.cc#oldcode297 chrome/browser/net/sqlite_persistent_cookie_store.cc:297: // so we want those people to get it. ...
9 years ago (2011-12-21 02:41:01 UTC) #3
Scott Hess - ex-Googler
Greg, any input? Since this was part of your yak herd...
9 years ago (2011-12-22 02:42:27 UTC) #4
Greg Billock
On 2011/12/22 02:42:27, shess wrote: > Greg, any input? Since this was part of your ...
9 years ago (2011-12-22 15:16:40 UTC) #5
Scott Hess - ex-Googler
Since linux_rel did not fail the PanelDownloadTest.* tests the other two failed, and I have ...
9 years ago (2011-12-22 20:29:53 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/9005036/6001
9 years ago (2011-12-22 20:30:07 UTC) #7
commit-bot: I haz the power
Presubmit check for 9005036-6001 failed and returned exit status 1. Running presubmit commit checks ...
9 years ago (2011-12-22 20:30:15 UTC) #8
Scott Hess - ex-Googler
On 2011/12/22 20:30:15, I haz the power (commit-bot) wrote: > ** Presubmit ERRORS ** > ...
9 years ago (2011-12-22 20:58:49 UTC) #9
Scott Hess - ex-Googler
On 2011/12/22 20:58:49, shess wrote: > On 2011/12/22 20:30:15, I haz the power (commit-bot) wrote: ...
9 years ago (2011-12-22 23:13:49 UTC) #10
michaeln
LGTM
9 years ago (2011-12-23 14:26:29 UTC) #11
Scott Hess - ex-Googler
On 2011/12/23 14:26:29, michaeln wrote: > LGTM Thanks!
9 years ago (2011-12-23 15:51:41 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shess@chromium.org/9005036/6001
9 years ago (2011-12-23 15:51:57 UTC) #13
commit-bot: I haz the power
9 years ago (2011-12-23 17:07:22 UTC) #14
Change committed as 115725

Powered by Google App Engine
This is Rietveld 408576698