| Index: chrome/browser/history/history_tab_helper.cc
|
| diff --git a/chrome/browser/history/history_tab_helper.cc b/chrome/browser/history/history_tab_helper.cc
|
| index 03ccc8157f2f73e4ad75c88d34b47967bfb6f21f..948811b774f7621b03fb041c6f0ad52e2b82db64 100644
|
| --- a/chrome/browser/history/history_tab_helper.cc
|
| +++ b/chrome/browser/history/history_tab_helper.cc
|
| @@ -153,10 +153,9 @@ HistoryService* HistoryTabHelper::GetHistoryService() {
|
| Profile::IMPLICIT_ACCESS);
|
| }
|
|
|
| -void HistoryTabHelper::WebContentsDestroyed(WebContents* tab) {
|
| +void HistoryTabHelper::WebContentsDestroyed() {
|
| // We update the history for this URL.
|
| - // The content returned from web_contents() has been destroyed by now.
|
| - // We need to use tab value directly.
|
| + WebContents* tab = web_contents();
|
| Profile* profile = Profile::FromBrowserContext(tab->GetBrowserContext());
|
| if (profile->IsOffTheRecord())
|
| return;
|
|
|