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 3df8d88580ca5bfb1df03fcb1f5fbe24f90b24d2..8d4fb866aa88413e9c0c2602d5350e26e59cae93 100644 |
--- a/chrome/browser/sync/test/integration/typed_urls_helper.cc |
+++ b/chrome/browser/sync/test/integration/typed_urls_helper.cc |
@@ -169,7 +169,6 @@ void AddToHistory(history::HistoryService* service, |
transition, |
source, |
false); |
- service->SetPageTitle(url, base::ASCIIToUTF16(url.spec() + " - title")); |
} |
history::URLRows GetTypedUrlsFromHistoryService( |
@@ -332,6 +331,16 @@ void DeleteUrlsFromHistory(int index, const std::vector<GURL>& urls) { |
WaitForHistoryDBThread(index); |
} |
+void SetPageTitle(int index, const GURL& url, const std::string& title) { |
+ HistoryServiceFactory::GetForProfileWithoutCreating(test()->GetProfile(index)) |
+ ->SetPageTitle(url, base::UTF8ToUTF16(title)); |
+ if (test()->use_verifier()) |
+ HistoryServiceFactory::GetForProfile(test()->verifier(), |
+ ServiceAccessType::IMPLICIT_ACCESS) |
+ ->SetPageTitle(url, base::UTF8ToUTF16(title)); |
+ WaitForHistoryDBThread(index); |
+} |
+ |
bool CheckURLRowVectorsAreEqual(const history::URLRows& left, |
const history::URLRows& right) { |
if (left.size() != right.size()) |