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

Unified Diff: chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc

Issue 14845020: Ignore unwanted AddRef/ReleaesModule calls to g_browser_process from the views layer during startup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
Index: chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
diff --git a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
index 46122867b23ee7c1b8cd9e2e6cd61ba9b5a589d8..8351bbc2d4623dbd90c9797344e650c0277e3b52 100644
--- a/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
+++ b/chrome/browser/ui/views/chrome_browser_main_extra_parts_views.cc
@@ -20,6 +20,13 @@ void ChromeBrowserMainExtraPartsViews::ToolkitInitialized() {
views::ViewsDelegate::views_delegate = new ChromeViewsDelegate;
}
+void ChromeBrowserMainExtraPartsViews::PreBrowserStart() {
+ // Any views UI running at this point will need to start refcounting the
+ // browser process.
+ if (views::ViewsDelegate::views_delegate)
+ views::ViewsDelegate::views_delegate->SetRefCounting(true);
+}
+
void ChromeBrowserMainExtraPartsViews::PreCreateThreads() {
// Enable the new style dialogs when using the interactive autocomplete
// dialog. Modifying the command line is only safe before starting threads.
« no previous file with comments | « chrome/browser/ui/views/chrome_browser_main_extra_parts_views.h ('k') | chrome/browser/ui/views/chrome_views_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698