| 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..69a90c706213fae33dd4b449998800b20c9a8409 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->browser_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->browser_context());
|
| + HistoryService* history =
|
| + profile->GetHistoryService(Profile::EXPLICIT_ACCESS);
|
| if (history) {
|
| CancelableRequestProvider::Handle request_handle;
|
| if (callback_consumer_.GetFirstHandleForClientData(tab_contents,
|
|
|