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

Issue 9071014: Database usage adjustment for .../history (Closed)

Created:
8 years, 11 months ago by Greg Billock
Modified:
8 years, 11 months ago
CC:
chromium-reviews, dhollowa+watch_chromium.org, brettw-cc_chromium.org, benjhayden
Visibility:
Public.

Description

Database usage adjustment for .../history R=shess@chromium.org BUG=None TEST=.../history tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=118184

Patch Set 1 #

Total comments: 66

Patch Set 2 : Review fixes #

Total comments: 17

Patch Set 3 : Fix up url/visit code. #

Total comments: 4

Patch Set 4 : Review comments #

Total comments: 2

Patch Set 5 : Simplify SQL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -551 lines) Patch
M chrome/browser/history/download_database.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/download_database.cc View 1 2 3 11 chunks +16 lines, -26 lines 0 comments Download
M chrome/browser/history/history_database.cc View 2 chunks +4 lines, -11 lines 0 comments Download
M chrome/browser/history/in_memory_database.cc View 1 2 chunks +2 lines, -8 lines 0 comments Download
M chrome/browser/history/in_memory_url_index_unittest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/history/shortcuts_database.cc View 4 chunks +7 lines, -25 lines 0 comments Download
M chrome/browser/history/starred_url_database.cc View 8 chunks +6 lines, -22 lines 0 comments Download
M chrome/browser/history/text_database.cc View 5 chunks +8 lines, -30 lines 0 comments Download
M chrome/browser/history/thumbnail_database.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/thumbnail_database.cc View 1 23 chunks +72 lines, -121 lines 0 comments Download
M chrome/browser/history/top_sites_database.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/history/top_sites_database.cc View 1 12 chunks +18 lines, -45 lines 0 comments Download
M chrome/browser/history/url_database.cc View 1 2 17 chunks +18 lines, -59 lines 0 comments Download
M chrome/browser/history/url_database_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/history/visit_database.h View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/history/visit_database.cc View 1 2 21 chunks +23 lines, -65 lines 0 comments Download
M chrome/browser/history/visitsegment_database.h View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/history/visitsegment_database.cc View 1 2 3 4 9 chunks +35 lines, -79 lines 0 comments Download
M chrome/browser/webdata/keyword_table.cc View 1 2 3 4 9 chunks +22 lines, -49 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
Greg Billock
8 years, 11 months ago (2012-01-03 19:43:25 UTC) #1
Scott Hess - ex-Googler
http://codereview.chromium.org/9071014/diff/1/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (right): http://codereview.chromium.org/9071014/diff/1/chrome/browser/history/download_database.cc#newcode235 chrome/browser/history/download_database.cc:235: // TODO(rdsmith): Remove when http://crbug.com/96627 is resolved. The target ...
8 years, 11 months ago (2012-01-03 23:41:57 UTC) #2
Scott Hess - ex-Googler
http://codereview.chromium.org/9071014/diff/1/chrome/browser/history/download_database.h File chrome/browser/history/download_database.h (right): http://codereview.chromium.org/9071014/diff/1/chrome/browser/history/download_database.h#newcode61 chrome/browser/history/download_database.h:61: bool RemoveDownloadsBetween(base::Time remove_begin, base::Time remove_end); BTW: Where you've converted ...
8 years, 11 months ago (2012-01-04 00:06:39 UTC) #3
Greg Billock
http://codereview.chromium.org/9071014/diff/1/chrome/browser/history/download_database.cc File chrome/browser/history/download_database.cc (right): http://codereview.chromium.org/9071014/diff/1/chrome/browser/history/download_database.cc#newcode235 chrome/browser/history/download_database.cc:235: // TODO(rdsmith): Remove when http://crbug.com/96627 is resolved. On 2012/01/03 ...
8 years, 11 months ago (2012-01-04 19:20:19 UTC) #4
Randy Smith (Not in Mondays)
LGTM given the move of the below mentioned comment back to the erase. CCing Ben ...
8 years, 11 months ago (2012-01-04 19:34:18 UTC) #5
Randy Smith (Not in Mondays)
Whoops; really ccing Ben Hayden FHI this time. (Copy from last comment) Ben: You might ...
8 years, 11 months ago (2012-01-04 19:36:05 UTC) #6
Greg Billock
On Wed, Jan 4, 2012 at 11:34 AM, <rdsmith@chromium.org> wrote: > LGTM given the move ...
8 years, 11 months ago (2012-01-04 21:08:06 UTC) #7
Randy Smith (Not in Mondays)
On 2012/01/04 21:08:06, Greg Billock wrote: > Long story, but it originating from a desire ...
8 years, 11 months ago (2012-01-04 21:22:15 UTC) #8
Greg Billock
Any other comments? On 2012/01/04 21:22:15, rdsmith wrote: > On 2012/01/04 21:08:06, Greg Billock wrote: ...
8 years, 11 months ago (2012-01-09 23:12:53 UTC) #9
Scott Hess - ex-Googler
Here's a pass responding to earlier comments. I'll make another pass looking for new comments ...
8 years, 11 months ago (2012-01-10 22:04:55 UTC) #10
Scott Hess - ex-Googler
OK, a few more comments. Thanks! http://codereview.chromium.org/9071014/diff/9002/chrome/browser/history/thumbnail_database.cc File chrome/browser/history/thumbnail_database.cc (right): http://codereview.chromium.org/9071014/diff/9002/chrome/browser/history/thumbnail_database.cc#newcode363 chrome/browser/history/thumbnail_database.cc:363: statement.BindInt64(2, icon_id); +100! ...
8 years, 11 months ago (2012-01-10 22:29:49 UTC) #11
Greg Billock
http://codereview.chromium.org/9071014/diff/9002/chrome/browser/history/thumbnail_database.cc File chrome/browser/history/thumbnail_database.cc (right): http://codereview.chromium.org/9071014/diff/9002/chrome/browser/history/thumbnail_database.cc#newcode363 chrome/browser/history/thumbnail_database.cc:363: statement.BindInt64(2, icon_id); On 2012/01/10 22:29:49, shess wrote: > +100! ...
8 years, 11 months ago (2012-01-11 23:42:12 UTC) #12
Ivan Korotkov
LGTM for KeywordTable with nits: http://codereview.chromium.org/9071014/diff/23005/chrome/browser/webdata/keyword_table.cc File chrome/browser/webdata/keyword_table.cc (right): http://codereview.chromium.org/9071014/diff/23005/chrome/browser/webdata/keyword_table.cc#newcode237 chrome/browser/webdata/keyword_table.cc:237: scoped_ptr<TemplateURL> template_url(new TemplateURL()); Looks ...
8 years, 11 months ago (2012-01-13 09:53:41 UTC) #13
Greg Billock
http://codereview.chromium.org/9071014/diff/23005/chrome/browser/webdata/keyword_table.cc File chrome/browser/webdata/keyword_table.cc (right): http://codereview.chromium.org/9071014/diff/23005/chrome/browser/webdata/keyword_table.cc#newcode237 chrome/browser/webdata/keyword_table.cc:237: scoped_ptr<TemplateURL> template_url(new TemplateURL()); On 2012/01/13 09:53:41, Ivan Korotkov wrote: ...
8 years, 11 months ago (2012-01-13 20:23:19 UTC) #14
Scott Hess - ex-Googler
LGTM, with the indicated change. http://codereview.chromium.org/9071014/diff/30001/chrome/browser/history/visitsegment_database.cc File chrome/browser/history/visitsegment_database.cc (right): http://codereview.chromium.org/9071014/diff/30001/chrome/browser/history/visitsegment_database.cc#newcode336 chrome/browser/history/visitsegment_database.cc:336: "(SELECT id FROM segments ...
8 years, 11 months ago (2012-01-13 21:41:33 UTC) #15
Greg Billock
http://codereview.chromium.org/9071014/diff/30001/chrome/browser/history/visitsegment_database.cc File chrome/browser/history/visitsegment_database.cc (right): http://codereview.chromium.org/9071014/diff/30001/chrome/browser/history/visitsegment_database.cc#newcode336 chrome/browser/history/visitsegment_database.cc:336: "(SELECT id FROM segments WHERE url_id = ?)")); On ...
8 years, 11 months ago (2012-01-18 19:32:21 UTC) #16
Scott Hess - ex-Googler
STILL LGTM!
8 years, 11 months ago (2012-01-18 21:01:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gbillock@chromium.org/9071014/40001
8 years, 11 months ago (2012-01-18 21:56:22 UTC) #18
commit-bot: I haz the power
8 years, 11 months ago (2012-01-18 23:43:29 UTC) #19
Change committed as 118184

Powered by Google App Engine
This is Rietveld 408576698