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

Issue 267019: Add the ability to unload the HistoryBackend.... (Closed)

Created:
11 years, 2 months ago by Peter Kasting
Modified:
9 years, 7 months ago
Reviewers:
brettw
CC:
chromium-reviews_googlegroups.com, brettw+cc_chromium.org, ben+cc_chromium.org, John Grabowski, pam+watch_chromium.org, Paweł Hajdan Jr., tim (not reviewing)
Visibility:
Public.

Description

Add the ability to unload the HistoryBackend. A small number of places used accessors like in_memory_url_database() or backend_loaded() with the expectation that if they weren't already functional, the history system was in the process of making them so. I elected to make both of these functions that triggered lazy backend initialization. BUG=23400 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28461

Patch Set 1 #

Total comments: 9

Patch Set 2 : '' #

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -70 lines) Patch
M chrome/browser/autocomplete/autocomplete_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/autocomplete_edit_view_browsertest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/autocomplete/history_url_provider.cc View 1 2 1 chunk +6 lines, -5 lines 0 comments Download
M chrome/browser/automation/automation_profile_impl.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_index.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_index_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/bookmarks/bookmark_storage.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/cocoa/history_menu_bridge.mm View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/history/history.h View 1 2 16 chunks +50 lines, -22 lines 0 comments Download
M chrome/browser/history/history.cc View 1 2 9 chunks +55 lines, -36 lines 0 comments Download
M chrome/browser/profile.h View 1 2 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Peter Kasting
11 years, 2 months ago (2009-10-07 23:23:03 UTC) #1
brettw
http://codereview.chromium.org/267019/diff/1/10 File chrome/browser/history/history.cc (right): http://codereview.chromium.org/267019/diff/1/10#newcode222 Line 222: LoadBackendIfNecessary(); I'm not clear what this call has ...
11 years, 2 months ago (2009-10-08 00:47:51 UTC) #2
Peter Kasting
Take another look. http://codereview.chromium.org/267019/diff/1/10 File chrome/browser/history/history.cc (right): http://codereview.chromium.org/267019/diff/1/10#newcode222 Line 222: LoadBackendIfNecessary(); On 2009/10/08 00:47:51, brettw ...
11 years, 2 months ago (2009-10-08 00:59:35 UTC) #3
brettw
http://codereview.chromium.org/267019/diff/1/10 File chrome/browser/history/history.cc (right): http://codereview.chromium.org/267019/diff/1/10#newcode222 Line 222: LoadBackendIfNecessary(); On 2009/10/08 00:59:35, Peter Kasting wrote: > ...
11 years, 2 months ago (2009-10-08 01:22:01 UTC) #4
Peter Kasting
http://codereview.chromium.org/267019/diff/1/10 File chrome/browser/history/history.cc (right): http://codereview.chromium.org/267019/diff/1/10#newcode222 Line 222: LoadBackendIfNecessary(); On 2009/10/08 01:22:01, brettw wrote: > On ...
11 years, 2 months ago (2009-10-08 17:06:46 UTC) #5
brettw
11 years, 2 months ago (2009-10-08 21:17:14 UTC) #6
I guess this is OK. Can you add a comment to the in memory getter with a brief
version of what you wrote here. It's the kind of thing I would delete if I came
across it later since it doesn't do anything.

LGTM

Powered by Google App Engine
This is Rietveld 408576698