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

Side by Side Diff: chrome/browser/browser_shutdown.h

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/browser_shutdown.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_BROWSER_SHUTDOWN_H__ 5 #ifndef CHROME_BROWSER_BROWSER_SHUTDOWN_H__
6 #define CHROME_BROWSER_BROWSER_SHUTDOWN_H__ 6 #define CHROME_BROWSER_BROWSER_SHUTDOWN_H__
7 #pragma once 7 #pragma once
8 8
9 class PrefService; 9 class PrefService;
10 10
11 namespace browser_shutdown { 11 namespace browser_shutdown {
12 12
13 // Should Shutdown() delete the ResourceBundle? This is normally true, but set
14 // to false for in process unit tests.
15 extern bool delete_resources_on_shutdown;
16
17 enum ShutdownType { 13 enum ShutdownType {
18 // an uninitialized value 14 // an uninitialized value
19 NOT_VALID = 0, 15 NOT_VALID = 0,
20 // the last browser window was closed 16 // the last browser window was closed
21 WINDOW_CLOSE, 17 WINDOW_CLOSE,
22 // user clicked on the Exit menu item 18 // user clicked on the Exit menu item
23 BROWSER_EXIT, 19 BROWSER_EXIT,
24 // windows is logging off or shutting down 20 // windows is logging off or shutting down
25 END_SESSION 21 END_SESSION
26 }; 22 };
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // explicitly close the browser windows, which can lead to conditions which 72 // explicitly close the browser windows, which can lead to conditions which
77 // would fail checks. 73 // would fail checks.
78 bool ShuttingDownWithoutClosingBrowsers(); 74 bool ShuttingDownWithoutClosingBrowsers();
79 75
80 // Sets the ShuttingDownWithoutClosingBrowsers flag. 76 // Sets the ShuttingDownWithoutClosingBrowsers flag.
81 void SetShuttingDownWithoutClosingBrowsers(bool without_close); 77 void SetShuttingDownWithoutClosingBrowsers(bool without_close);
82 78
83 } // namespace browser_shutdown 79 } // namespace browser_shutdown
84 80
85 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__ 81 #endif // CHROME_BROWSER_BROWSER_SHUTDOWN_H__
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/browser_shutdown.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698