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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 501011: Speculative fix for a chrome browser crash which occurs with ChromeFrame. Bas... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years 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') | no next file » | 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 34559)
+++ chrome/browser/browser_process_impl.cc (working copy)
@@ -11,6 +11,7 @@
#include "base/path_service.h"
#include "base/thread.h"
#include "base/waitable_event.h"
+#include "chrome/browser/browser_main.h"
#include "chrome/browser/browser_trial.h"
#include "chrome/browser/chrome_thread.h"
#include "chrome/browser/debugger/debugger_wrapper.h"
@@ -251,6 +252,24 @@
message_loop->PostTask(FROM_HERE, new MessageLoop::QuitTask());
}
+unsigned int BrowserProcessImpl::AddRefModule() {
+ DCHECK(CalledOnValidThread());
+ module_ref_count_++;
+ return module_ref_count_;
+}
+
+unsigned int BrowserProcessImpl::ReleaseModule() {
+ DCHECK(CalledOnValidThread());
+ DCHECK(0 != module_ref_count_);
+ module_ref_count_--;
+ if (0 == module_ref_count_) {
+ MessageLoop::current()->PostTask(
+ FROM_HERE, NewRunnableFunction(Platform::DidEndMainMessageLoop));
+ MessageLoop::current()->Quit();
+ }
+ return module_ref_count_;
+}
+
void BrowserProcessImpl::EndSession() {
#if defined(OS_WIN)
// Notify we are going away.
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698