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-27 23:20:12 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-27 23:20:12 +0000
commitf82ff961d1f71ddf739739035d04921e5badc42c (patch)
tree99e8bcb04e49decdbe495b0ae51e36ae649f8b6a /chrome/browser/browser_shutdown.cc
parentfb16375636b4ed6e0ef8f14963989f43298b395e (diff)
downloadchromium_src-f82ff961d1f71ddf739739035d04921e5badc42c.zip
chromium_src-f82ff961d1f71ddf739739035d04921e5badc42c.tar.gz
chromium_src-f82ff961d1f71ddf739739035d04921e5badc42c.tar.bz2
Modifies shutdown/startup in the following manner:
. Before registering the scheme 'chrome' with GURL we make sure it isn't already registered. I need this as I'm going to invoke BrowserMain multiple times and didn't want the list of schemes to have n-chromes. . Removes ResourceBundle::CleanupSharedInstance from browser_shutdown. We do this from BrowserMain already, so there is no need in doing it here. BUG=none TEST=none Review URL: http://codereview.chromium.org/18861 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8768 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_shutdown.cc')
-rw-r--r--chrome/browser/browser_shutdown.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/browser_shutdown.cc b/chrome/browser/browser_shutdown.cc
index 6b0e29b..b671218 100644
--- a/chrome/browser/browser_shutdown.cc
+++ b/chrome/browser/browser_shutdown.cc
@@ -11,6 +11,7 @@
#include "base/time.h"
#include "base/waitable_event.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
#include "chrome/browser/first_run.h"
#include "chrome/browser/jankometer.h"
#include "chrome/browser/metrics/metrics_service.h"
@@ -146,6 +147,8 @@ void Shutdown() {
std::wstring shutdown_ms_file = GetShutdownMsPath();
file_util::WriteFile(shutdown_ms_file, shutdown_ms.c_str(), len);
}
+
+ UnregisterURLRequestChromeJob();
}
void ReadLastShutdownInfo() {