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

Issue 8550006: Make HistoryDatabase own StarredURLDatabase instead of inheriting from it. (Closed)

Created:
9 years, 1 month ago by tfarina
Modified:
9 years, 1 month ago
Reviewers:
sky
CC:
chromium-reviews, Paweł Hajdan Jr., brettw-cc_chromium.org
Visibility:
Public.

Description

Make HistoryDatabase own StarredURLDatabase instead of inheriting from it. This switches HistoryDatabase to composition, so the clients doesn't have to depend/include starred_url_database.h anymore. NOTE: This was a TODO for sky@. R=sky@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=111179

Patch Set 1 : #

Total comments: 4

Patch Set 2 : sky review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -28 lines) Patch
M chrome/browser/history/history_database.h View 1 3 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/history/history_database.cc View 1 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/history/starred_url_database.h View 1 5 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/history/starred_url_database.cc View 2 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/history/starred_url_database_unittest.cc View 4 chunks +5 lines, -8 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
tfarina
9 years, 1 month ago (2011-11-19 23:33:06 UTC) #1
sky
http://codereview.chromium.org/8550006/diff/2001/chrome/browser/history/history_database.h File chrome/browser/history/history_database.h (right): http://codereview.chromium.org/8550006/diff/2001/chrome/browser/history/history_database.h#newcode179 chrome/browser/history/history_database.h:179: scoped_ptr<StarredURLDatabase> starred_url_database_; Do we really need this as a ...
9 years, 1 month ago (2011-11-21 16:12:16 UTC) #2
tfarina
http://codereview.chromium.org/8550006/diff/2001/chrome/browser/history/history_database.h File chrome/browser/history/history_database.h (right): http://codereview.chromium.org/8550006/diff/2001/chrome/browser/history/history_database.h#newcode179 chrome/browser/history/history_database.h:179: scoped_ptr<StarredURLDatabase> starred_url_database_; On 2011/11/21 16:12:16, sky wrote: > Do ...
9 years, 1 month ago (2011-11-21 16:40:38 UTC) #3
sky
9 years, 1 month ago (2011-11-21 17:56:28 UTC) #4
LGTM

Powered by Google App Engine
This is Rietveld 408576698