| Index: chrome/browser/autocomplete/history_contents_provider_unittest.cc
|
| ===================================================================
|
| --- chrome/browser/autocomplete/history_contents_provider_unittest.cc (revision 148782)
|
| +++ chrome/browser/autocomplete/history_contents_provider_unittest.cc (working copy)
|
| @@ -11,6 +11,7 @@
|
| #include "chrome/browser/autocomplete/autocomplete_match.h"
|
| #include "chrome/browser/autocomplete/autocomplete_provider_listener.h"
|
| #include "chrome/browser/bookmarks/bookmark_model.h"
|
| +#include "chrome/browser/bookmarks/bookmark_model_factory.h"
|
| #include "chrome/browser/bookmarks/bookmark_utils.h"
|
| #include "chrome/browser/history/history.h"
|
| #include "chrome/browser/history/history_service_factory.h"
|
| @@ -200,9 +201,10 @@
|
|
|
| // Add a bookmark.
|
| GURL bookmark_url("http://www.google.com/4");
|
| - bookmark_utils::AddIfNotBookmarked(profile()->GetBookmarkModel(),
|
| - bookmark_url,
|
| - ASCIIToUTF16("bar"));
|
| + bookmark_utils::AddIfNotBookmarked(
|
| + BookmarkModelFactory::GetForProfile(profile()),
|
| + bookmark_url,
|
| + ASCIIToUTF16("bar"));
|
|
|
| // Ask for synchronous. This should only get the bookmark.
|
| AutocompleteInput sync_input(ASCIIToUTF16("bar"), string16(), true, false,
|
| @@ -259,9 +261,10 @@
|
|
|
| // Bookmark a history item.
|
| GURL bookmark_url(test_entries[2].url);
|
| - bookmark_utils::AddIfNotBookmarked(profile()->GetBookmarkModel(),
|
| - bookmark_url,
|
| - ASCIIToUTF16("bar"));
|
| + bookmark_utils::AddIfNotBookmarked(
|
| + BookmarkModelFactory::GetForProfile(profile()),
|
| + bookmark_url,
|
| + ASCIIToUTF16("bar"));
|
|
|
| // Get the match to delete its history
|
| AutocompleteInput input(ASCIIToUTF16("bar"), string16(), true, false, true,
|
|
|