| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 112525a2c436e6ae9d6cf436b9485fe3d20cdb9e..aeb8983733992f61e51dbf9f4cab47419f5b8e90 100644
|
| --- a/chrome/browser/ui/browser.cc
|
| +++ b/chrome/browser/ui/browser.cc
|
| @@ -482,6 +482,10 @@ Browser::~Browser() {
|
| // is destroyed to make sure the chrome.windows.onRemoved event is sent.
|
| extension_window_controller_.reset();
|
|
|
| + // Destroy BrowserInstantController before the incongnito profile is destroyed
|
| + // because the InstantController destructor depends on this profile.
|
| + instant_controller_.reset();
|
| +
|
| if (profile_->IsOffTheRecord() &&
|
| !BrowserList::IsOffTheRecordSessionActiveForProfile(profile_)) {
|
| // An incognito profile is no longer needed, this indirectly frees
|
|
|