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

Unified Diff: chrome/browser/browser_process_impl.h

Issue 10542151: Move the window destruction and registration out of cleanup and into BrowserProcessImpl::EndSession… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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 | « no previous file | chrome/browser/browser_process_impl.cc » ('j') | chrome/browser/process_singleton_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.h
===================================================================
--- chrome/browser/browser_process_impl.h (revision 141718)
+++ chrome/browser/browser_process_impl.h (working copy)
@@ -27,6 +27,7 @@
class ChromeNetLog;
class ChromeResourceDispatcherHostDelegate;
class CommandLine;
+class ProcessSingleton;
class RemoteDebuggingServer;
class TabCloseableStateWatcher;
@@ -40,7 +41,8 @@
public base::NonThreadSafe,
public content::NotificationObserver {
public:
- explicit BrowserProcessImpl(const CommandLine& command_line);
+ BrowserProcessImpl(const CommandLine& command_line,
+ ProcessSingleton* process_singleton);
virtual ~BrowserProcessImpl();
// Called before the browser threads are created.
@@ -264,6 +266,10 @@
// the callstack which released the final module reference count.
base::debug::StackTrace release_last_reference_callstack_;
+ // A weak pointer to the process_singleton for use in cleanup during
+ // EndSession on Windows.
+ ProcessSingleton* process_singleton_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserProcessImpl);
};
« no previous file with comments | « no previous file | chrome/browser/browser_process_impl.cc » ('j') | chrome/browser/process_singleton_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698