Index: chrome/browser/sync/test/integration/typed_urls_helper.cc |
diff --git a/chrome/browser/sync/test/integration/typed_urls_helper.cc b/chrome/browser/sync/test/integration/typed_urls_helper.cc |
index f3baf4196b288d44879fa3cc7860de35a78cb630..3df8d88580ca5bfb1df03fcb1f5fbe24f90b24d2 100644 |
--- a/chrome/browser/sync/test/integration/typed_urls_helper.cc |
+++ b/chrome/browser/sync/test/integration/typed_urls_helper.cc |
@@ -251,6 +251,16 @@ history::VisitVector GetVisitsFromClient(int index, history::URLID id) { |
return GetVisitsFromHistoryService(service, id); |
} |
+history::VisitVector GetVisitsForURLFromClient(int index, const GURL& url) { |
+ history::HistoryService* service = |
+ HistoryServiceFactory::GetForProfileWithoutCreating( |
+ test()->GetProfile(index)); |
+ history::URLRow url_row; |
+ if (!GetUrlFromHistoryService(service, url, &url_row)) |
+ return history::VisitVector(); |
+ return GetVisitsFromHistoryService(service, url_row.id()); |
+} |
+ |
void RemoveVisitsFromClient(int index, const history::VisitVector& visits) { |
history::HistoryService* service = |
HistoryServiceFactory::GetForProfileWithoutCreating( |