| Index: chrome/browser/download/download_browsertest.cc
|
| diff --git a/chrome/browser/download/download_browsertest.cc b/chrome/browser/download/download_browsertest.cc
|
| index 9ffc6d2acd46a383a80b0610c0742aeed3b32dca..6237ab5ef12dbcc96a3174af4c72a02b395dbcad 100644
|
| --- a/chrome/browser/download/download_browsertest.cc
|
| +++ b/chrome/browser/download/download_browsertest.cc
|
| @@ -251,7 +251,7 @@ class DownloadsHistoryDataCollector {
|
| bool WaitForDownloadInfo(
|
| scoped_ptr<std::vector<history::DownloadRow> >* results) {
|
| HistoryService* hs = HistoryServiceFactory::GetForProfile(
|
| - profile_, Profile::EXPLICIT_ACCESS);
|
| + profile_, ServiceAccessType::EXPLICIT_ACCESS);
|
| DCHECK(hs);
|
| hs->QueryDownloads(
|
| base::Bind(&DownloadsHistoryDataCollector::OnQueryDownloadsComplete,
|
| @@ -1894,10 +1894,11 @@ IN_PROC_BROWSER_TEST_F(DownloadTest, PRE_DownloadTest_History) {
|
| HistoryObserver observer(browser()->profile());
|
| DownloadAndWait(browser(), download_url);
|
| observer.WaitForStored();
|
| - HistoryServiceFactory::GetForProfile(
|
| - browser()->profile(), Profile::IMPLICIT_ACCESS)->FlushForTest(
|
| - base::Bind(&base::MessageLoop::Quit,
|
| - base::Unretained(base::MessageLoop::current()->current())));
|
| + HistoryServiceFactory::GetForProfile(browser()->profile(),
|
| + ServiceAccessType::IMPLICIT_ACCESS)
|
| + ->FlushForTest(base::Bind(
|
| + &base::MessageLoop::Quit,
|
| + base::Unretained(base::MessageLoop::current()->current())));
|
| content::RunMessageLoop();
|
| }
|
|
|
|
|