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

Unified Diff: chrome/browser/history/history_backend_unittest.cc

Issue 242693003: Introduce BookmarkClient interface to abstract embedder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing reviewer comments Created 6 years, 8 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/history/history_backend_unittest.cc
diff --git a/chrome/browser/history/history_backend_unittest.cc b/chrome/browser/history/history_backend_unittest.cc
index debfcd898941b2c2a9c0d013562a19959fe9fdfe..00e119563330cd6d13e4f5421795e1ee08fa5425 100644
--- a/chrome/browser/history/history_backend_unittest.cc
+++ b/chrome/browser/history/history_backend_unittest.cc
@@ -774,10 +774,10 @@ TEST_F(HistoryBackendTest, URLsNoLongerBookmarked) {
URLID row2_id = backend_->db_->GetRowForURL(row2.url(), NULL);
// Star the two URLs.
- bookmark_utils::AddIfNotBookmarked(&bookmark_model_, row1.url(),
- base::string16());
- bookmark_utils::AddIfNotBookmarked(&bookmark_model_, row2.url(),
- base::string16());
+ bookmark_utils::AddIfNotBookmarked(
+ &bookmark_model_, &bookmark_model_, row1.url(), base::string16());
+ bookmark_utils::AddIfNotBookmarked(
+ &bookmark_model_, &bookmark_model_, row2.url(), base::string16());
// Delete url 2. Because url 2 is starred this won't delete the URL, only
// the visits.
@@ -3132,7 +3132,7 @@ TEST_F(HistoryBackendTest, RemoveNotification) {
// Add a URL.
GURL url("http://www.google.com");
- bookmark_utils::AddIfNotBookmarked(model, url, base::string16());
+ bookmark_utils::AddIfNotBookmarked(model, model, url, base::string16());
HistoryService* service = HistoryServiceFactory::GetForProfile(
profile.get(), Profile::EXPLICIT_ACCESS);

Powered by Google App Engine
This is Rietveld 408576698