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

Unified Diff: chrome/browser/importer/profile_writer_unittest.cc

Issue 2216713002: Use BookmarkModelFactory::GetForBrowserContext everywhere (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bookmarks
Patch Set: Replace in .mm files Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/importer/profile_writer_unittest.cc
diff --git a/chrome/browser/importer/profile_writer_unittest.cc b/chrome/browser/importer/profile_writer_unittest.cc
index 8bfc115029533b95cbe385c452f3d44c8ca97752..dbed31920cc0dbaba88758c02983c4c22887a2e1 100644
--- a/chrome/browser/importer/profile_writer_unittest.cc
+++ b/chrome/browser/importer/profile_writer_unittest.cc
@@ -138,7 +138,7 @@ TEST_F(ProfileWriterTest, CheckBookmarksWithMultiProfile) {
profile2.CreateBookmarkModel(true);
BookmarkModel* bookmark_model2 =
- BookmarkModelFactory::GetForProfile(&profile2);
+ BookmarkModelFactory::GetForBrowserContext(&profile2);
bookmarks::test::WaitForBookmarkModelToLoad(bookmark_model2);
bookmarks::AddIfNotBookmarked(
bookmark_model2, GURL("http://www.bing.com"), base::ASCIIToUTF16("Bing"));
@@ -147,7 +147,7 @@ TEST_F(ProfileWriterTest, CheckBookmarksWithMultiProfile) {
CreateImportedBookmarksEntries();
BookmarkModel* bookmark_model1 =
- BookmarkModelFactory::GetForProfile(&profile1);
+ BookmarkModelFactory::GetForBrowserContext(&profile1);
bookmarks::test::WaitForBookmarkModelToLoad(bookmark_model1);
scoped_refptr<TestProfileWriter> profile_writer(
@@ -171,7 +171,7 @@ TEST_F(ProfileWriterTest, CheckBookmarksAfterWritingDataTwice) {
CreateImportedBookmarksEntries();
BookmarkModel* bookmark_model =
- BookmarkModelFactory::GetForProfile(&profile);
+ BookmarkModelFactory::GetForBrowserContext(&profile);
bookmarks::test::WaitForBookmarkModelToLoad(bookmark_model);
scoped_refptr<TestProfileWriter> profile_writer(
« no previous file with comments | « chrome/browser/importer/profile_writer.cc ('k') | chrome/browser/ntp_snippets/content_suggestions_service_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698