DownloadHistory::Load use HistoryServiceFactory::GetForProfile not IfExists

BUG=141779


Review URL: https://chromiumcodereview.appspot.com/10827386

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152146 0039d316-1c4b-4281-b951-d872f2087c98
parent e58a4d29
...@@ -25,7 +25,7 @@ DownloadHistory::~DownloadHistory() {} ...@@ -25,7 +25,7 @@ DownloadHistory::~DownloadHistory() {}
void DownloadHistory::GetNextId( void DownloadHistory::GetNextId(
const HistoryService::DownloadNextIdCallback& callback) { const HistoryService::DownloadNextIdCallback& callback) {
HistoryService* hs = HistoryServiceFactory::GetForProfileIfExists( HistoryService* hs = HistoryServiceFactory::GetForProfile(
profile_, Profile::EXPLICIT_ACCESS); profile_, Profile::EXPLICIT_ACCESS);
if (!hs) if (!hs)
return; return;
...@@ -35,7 +35,7 @@ void DownloadHistory::GetNextId( ...@@ -35,7 +35,7 @@ void DownloadHistory::GetNextId(
void DownloadHistory::Load( void DownloadHistory::Load(
const HistoryService::DownloadQueryCallback& callback) { const HistoryService::DownloadQueryCallback& callback) {
HistoryService* hs = HistoryServiceFactory::GetForProfileIfExists( HistoryService* hs = HistoryServiceFactory::GetForProfile(
profile_, Profile::EXPLICIT_ACCESS); profile_, Profile::EXPLICIT_ACCESS);
if (!hs) if (!hs)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment