From 9876bb1ca6bcd92032ee0b0d79065bf0fb8b2d8a Mon Sep 17 00:00:00 2001 From: "sky@google.com" Date: Tue, 16 Dec 2008 20:42:25 +0000 Subject: Attempt 2 at this. This differs from first version in that I renamed set_store to ClearStore and properly remove an observer I added. And I'm disabling a test that needs more investigation. Makes the interactive bookmark bar view tests faster by disabling saving. This is why BookmarkBarViewTest9 keeps timing out. BUG=none TEST=none Review URL: http://codereview.chromium.org/14471 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7091 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/bookmarks/bookmark_model.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/browser/bookmarks/bookmark_model.h') diff --git a/chrome/browser/bookmarks/bookmark_model.h b/chrome/browser/bookmarks/bookmark_model.h index 675405b..6f33274 100644 --- a/chrome/browser/bookmarks/bookmark_model.h +++ b/chrome/browser/bookmarks/bookmark_model.h @@ -284,6 +284,11 @@ class BookmarkModel : public NotificationObserver, public BookmarkService { Profile* profile() const { return profile_; } + // Sets the store to NULL, making it so the BookmarkModel does not persist + // any changes to disk. This is only useful during testing to speed up + // testing. + void ClearStore(); + private: // Used to order BookmarkNodes by URL. class NodeURLComparator { -- cgit v1.1