Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 7538022: Jumplist Bug (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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());
}
« chrome/browser/jumplist_win.cc ('K') | « chrome/browser/ui/views/frame/browser_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698