| Index: chrome/browser/tabs/tab_finder.cc
|
| diff --git a/chrome/browser/tabs/tab_finder.cc b/chrome/browser/tabs/tab_finder.cc
|
| index ec2ca0e5cce4295f5b4259bf204604f93501d37e..c5f44fa6b9028bc3783ea4565b66b05c46658b66 100644
|
| --- a/chrome/browser/tabs/tab_finder.cc
|
| +++ b/chrome/browser/tabs/tab_finder.cc
|
| @@ -182,13 +182,14 @@ void TabFinder::TabDestroyed(TabContentsObserverImpl* observer) {
|
| }
|
|
|
| void TabFinder::CancelRequestsFor(TabContents* tab_contents) {
|
| - if (tab_contents->profile()->IsOffTheRecord())
|
| + if (tab_contents->context()->IsOffTheRecord())
|
| return;
|
|
|
| tab_contents_to_url_.erase(tab_contents);
|
|
|
| - HistoryService* history = tab_contents->profile()->GetHistoryService(
|
| - Profile::EXPLICIT_ACCESS);
|
| + Profile* profile = static_cast<Profile*>(tab_contents->context());
|
| + HistoryService* history =
|
| + profile->GetHistoryService(Profile::EXPLICIT_ACCESS);
|
| if (history) {
|
| CancelableRequestProvider::Handle request_handle;
|
| if (callback_consumer_.GetFirstHandleForClientData(tab_contents,
|
|
|