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

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

Issue 17084014: Do not try to shutdown when XIOError happens during startup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_browser_main_x11.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 // Contains functions used by BrowserMain() that are gtk-specific. 5 // Contains functions used by BrowserMain() that are gtk-specific.
6 6
7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_X11_H_ 7 #ifndef CHROME_BROWSER_CHROME_BROWSER_MAIN_X11_H_
8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_X11_H_ 8 #define CHROME_BROWSER_CHROME_BROWSER_MAIN_X11_H_
9 9
10 // Installs the X11 error handlers for the browser process. This will 10 // Installs the X11 error handlers for the browser process used during
11 // allow us to exit cleanly if X exits before us. 11 // startup. They simply print error messages and exit because
12 void SetBrowserX11ErrorHandlers(); 12 // we can't shutdown properly while creating and initializing services.
13 void SetBrowserX11ErrorHandlersPreEarlyInitialization();
14
15 // Installs the X11 error handlers for the browser process after the
16 // main message loop has started. This will allow us to exit cleanly
17 // if X exits before us.
18 void SetBrowserX11ErrorHandlersPostMainMessageLoopStart();
13 19
14 // Installs empty X11 error handlers. This avoids calling into the message-loop 20 // Installs empty X11 error handlers. This avoids calling into the message-loop
15 // in case an X11 erro happens while the message-loop is being destroyed. 21 // in case an X11 erro happens while the message-loop is being destroyed.
16 void UnsetBrowserX11ErrorHandlers(); 22 void UnsetBrowserX11ErrorHandlers();
17 23
18 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_X11_H_ 24 #endif // CHROME_BROWSER_CHROME_BROWSER_MAIN_X11_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_browser_main.cc ('k') | chrome/browser/chrome_browser_main_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698