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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 10539091: Leak ResourceBundle during browser shutdown (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "remove delete_resources_on_shutdown" Created 8 years, 6 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
« no previous file with comments | « chrome/browser/browser_shutdown.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index 914bab391a34d10b332a9aa236e9397332e805bb..a71a7a2a8f875a8957836002d3ba49c17914da06 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -390,12 +390,6 @@ Profile* CreateProfile(const content::MainFunctionParams& parameters,
// with the new dir.
// http://code.google.com/p/chromium/issues/detail?id=11510
FilePath new_user_data_dir = browser::ShowUserDataDirDialog(user_data_dir);
- if (!parameters.ui_task && browser_shutdown::delete_resources_on_shutdown) {
- // Only delete the resources if we're not running tests. If we're running
- // tests the resources need to be reused as many places in the UI cache
- // ImageSkias from the ResourceBundle.
- ResourceBundle::CleanupSharedInstance();
- }
if (!new_user_data_dir.empty()) {
// Because of the way CommandLine parses, it's sufficient to append a new
« no previous file with comments | « chrome/browser/browser_shutdown.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698