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

Unified Diff: chrome/browser/browser_process_impl.cc

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 | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
===================================================================
--- chrome/browser/browser_process_impl.cc (revision 141718)
+++ chrome/browser/browser_process_impl.cc (working copy)
@@ -50,6 +50,7 @@
#include "chrome/browser/printing/background_printing_manager.h"
#include "chrome/browser/printing/print_job_manager.h"
#include "chrome/browser/printing/print_preview_tab_controller.h"
+#include "chrome/browser/process_singleton.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.h"
#include "chrome/browser/safe_browsing/safe_browsing_service.h"
@@ -126,7 +127,8 @@
using content::PluginService;
using content::ResourceDispatcherHost;
-BrowserProcessImpl::BrowserProcessImpl(const CommandLine& command_line)
+BrowserProcessImpl::BrowserProcessImpl(const CommandLine& command_line,
+ ProcessSingleton* process_singleton)
: created_metrics_service_(false),
created_watchdog_thread_(false),
created_browser_policy_connector_(false),
@@ -140,7 +142,8 @@
checked_for_new_frames_(false),
using_new_frames_(false),
thumbnail_generator_(new ThumbnailGenerator),
- download_status_updater_(new DownloadStatusUpdater) {
+ download_status_updater_(new DownloadStatusUpdater),
+ process_singleton_(process_singleton) {
g_browser_process = this;
clipboard_.reset(new ui::Clipboard);
@@ -346,6 +349,9 @@
// If we did get extra quits, then we should re-post them to the message loop.
while (--quits_received > 0)
MessageLoop::current()->PostTask(FROM_HERE, MessageLoop::QuitClosure());
+
+ DCHECK(process_singleton_);
Jói 2012/06/14 10:32:49 This only checks that the pointer is not NULL (whi
rpetterson 2012/06/14 22:12:50 Done.
+ process_singleton_->UnregisterWindowClass();
Jói 2012/06/14 10:32:49 BrowserProcess::EndSession is only called when the
rpetterson 2012/06/14 22:12:50 Done.
#else
NOTIMPLEMENTED();
#endif
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698