diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-08 22:34:29 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-08 22:34:29 +0000 |
commit | 0850fa6b9e60e7b925ba516d8cf563fcb18eb23a (patch) | |
tree | b269d0c9180761ab39a046ebda1e34355d78c9ab /chrome/browser/cocoa | |
parent | 0b081d53f118869541d28139353457bd7aec32e5 (diff) | |
download | chromium_src-0850fa6b9e60e7b925ba516d8cf563fcb18eb23a.zip chromium_src-0850fa6b9e60e7b925ba516d8cf563fcb18eb23a.tar.gz chromium_src-0850fa6b9e60e7b925ba516d8cf563fcb18eb23a.tar.bz2 |
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
Review URL: http://codereview.chromium.org/267019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28461 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa')
-rw-r--r-- | chrome/browser/cocoa/history_menu_bridge.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/history_menu_bridge.mm b/chrome/browser/cocoa/history_menu_bridge.mm index 1603e8c..0f0693c 100644 --- a/chrome/browser/cocoa/history_menu_bridge.mm +++ b/chrome/browser/cocoa/history_menu_bridge.mm @@ -48,7 +48,7 @@ HistoryMenuBridge::HistoryMenuBridge(Profile* profile) // may not be ready when the Bridge is created. If this happens, register // for a notification that tells us the HistoryService is ready. HistoryService* hs = profile_->GetHistoryService(Profile::EXPLICIT_ACCESS); - if (hs != NULL && hs->backend_loaded()) { + if (hs != NULL && hs->BackendLoaded()) { history_service_ = hs; Init(); } @@ -90,7 +90,7 @@ void HistoryMenuBridge::Observe(NotificationType type, if (type == NotificationType::HISTORY_LOADED) { HistoryService* hs = profile_->GetHistoryService(Profile::EXPLICIT_ACCESS); - if (hs != NULL && hs->backend_loaded()) { + if (hs != NULL && hs->BackendLoaded()) { history_service_ = hs; Init(); |