diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 12:31:34 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-01 12:31:34 +0000 |
commit | e19cf1e973a77089f45935fc3f960aba91890373 (patch) | |
tree | 8b1e8ecb09278b5ae708d246685a852dc62dfb6f /chrome/test/ui_test_utils.cc | |
parent | e87d0813680968941a8be73cc0a22881237fdbce (diff) | |
download | chromium_src-e19cf1e973a77089f45935fc3f960aba91890373.zip chromium_src-e19cf1e973a77089f45935fc3f960aba91890373.tar.gz chromium_src-e19cf1e973a77089f45935fc3f960aba91890373.tar.bz2 |
Implement policy for enabling/disabling browsing history.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3432033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61169 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui_test_utils.cc')
-rw-r--r-- | chrome/test/ui_test_utils.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/test/ui_test_utils.cc b/chrome/test/ui_test_utils.cc index f570707..8709397 100644 --- a/chrome/test/ui_test_utils.cc +++ b/chrome/test/ui_test_utils.cc @@ -574,6 +574,13 @@ void WaitForBookmarkModelToLoad(BookmarkModel* model) { ASSERT_TRUE(model->IsLoaded()); } +void WaitForHistoryToLoad(Browser* browser) { + HistoryService* history_service = + browser->profile()->GetHistoryService(Profile::EXPLICIT_ACCESS); + if (!history_service->BackendLoaded()) + WaitForNotification(NotificationType::HISTORY_LOADED); +} + bool GetNativeWindow(const Browser* browser, gfx::NativeWindow* native_window) { BrowserWindow* window = browser->window(); if (!window) |