| Index: chrome/browser/ui/views/frame/browser_view.cc
|
| ===================================================================
|
| --- chrome/browser/ui/views/frame/browser_view.cc (revision 96768)
|
| +++ chrome/browser/ui/views/frame/browser_view.cc (working copy)
|
| @@ -353,6 +353,12 @@
|
| // Stop hung plugin monitoring.
|
| ticker_.Stop();
|
| ticker_.UnregisterTickHandler(&hung_window_detector_);
|
| +
|
| + // Terminate the jumplist (must be called before browser_->profile() is
|
| + // destroyed.
|
| + if (jumplist_) {
|
| + jumplist_->Terminate();
|
| + }
|
| #endif
|
|
|
| #if !defined(OS_CHROMEOS)
|
| @@ -2002,7 +2008,7 @@
|
| // Create a custom JumpList and add it to an observer of TabRestoreService
|
| // so we can update the custom JumpList when a tab is added or removed.
|
| if (JumpList::Enabled()) {
|
| - jumplist_.reset(new JumpList);
|
| + jumplist_ = new JumpList();
|
| jumplist_->AddObserver(browser_->profile());
|
| }
|
|
|
|
|