summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_shutdown.cc
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 21:53:16 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-28 21:53:16 +0000
commit4663213354a9c41ab0e5a785d52bf5c9a9692514 (patch)
treee171f81dc4e0bd37b993b077a69ea5199a42d7b6 /chrome/browser/browser_shutdown.cc
parentbc90a55d0dd209e0d3a1c719f54226becb045dd8 (diff)
downloadchromium_src-4663213354a9c41ab0e5a785d52bf5c9a9692514.zip
chromium_src-4663213354a9c41ab0e5a785d52bf5c9a9692514.tar.gz
chromium_src-4663213354a9c41ab0e5a785d52bf5c9a9692514.tar.bz2
Adds cleanup code to RLZ so that we don't leak an OmniBoxUsageObserver
on shutdown. This came up in running in process ui tests through purify. BUG=none TEST=none Review URL: http://codereview.chromium.org/19428 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_shutdown.cc')
-rw-r--r--chrome/browser/browser_shutdown.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/browser_shutdown.cc b/chrome/browser/browser_shutdown.cc
index ba80772..c1c57ff 100644
--- a/chrome/browser/browser_shutdown.cc
+++ b/chrome/browser/browser_shutdown.cc
@@ -20,6 +20,7 @@
#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/browser/renderer_host/render_view_host.h"
#include "chrome/browser/renderer_host/render_widget_host.h"
+#include "chrome/browser/rlz/rlz.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/pref_service.h"
@@ -125,6 +126,10 @@ void Shutdown() {
prefs->SavePersistentPrefs(g_browser_process->file_thread());
+ // Cleanup any statics created by RLZ. Must be done before NotificationService
+ // is destroyed.
+ RLZTracker::CleanupRlz();
+
// The jank'o'meter requires that the browser process has been destroyed
// before calling UninstallJankometer().
delete g_browser_process;