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

Issue 250723002: content: Terminate early if the toolkit initialization fails. (Closed)

Created:
6 years, 8 months ago by sadrul
Modified:
6 years, 8 months ago
Reviewers:
jam, Daniel Erat
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

content: Terminate early if the toolkit initialization fails. On Chrome OS, it is possible for chrome to start without the X11 server (e.g. X server has crashed, and hasn't restarted since). In such cases, Chrome ends up causing a crash. So instead of the crash, abort the startup sequence if the toolkit initialization step fails. BUG=364929 R=jam@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266231

Patch Set 1 #

Total comments: 4

Patch Set 2 : . #

Total comments: 2

Patch Set 3 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -5 lines) Patch
M content/browser/browser_main_loop.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M content/browser/browser_main_loop.cc View 3 chunks +11 lines, -2 lines 0 comments Download
M content/browser/browser_main_runner.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/public/browser/browser_main_runner.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
sadrul
Hi! Does this look like a reasonable way to handle failures during initialization?
6 years, 8 months ago (2014-04-24 22:28:57 UTC) #1
Daniel Erat
https://codereview.chromium.org/250723002/diff/1/content/browser/browser_main_runner.cc File content/browser/browser_main_runner.cc (right): https://codereview.chromium.org/250723002/diff/1/content/browser/browser_main_runner.cc#newcode88 content/browser/browser_main_runner.cc:88: return 0; this method is super-undocumented. is this used ...
6 years, 8 months ago (2014-04-24 22:39:27 UTC) #2
sadrul
https://codereview.chromium.org/250723002/diff/1/content/browser/browser_main_runner.cc File content/browser/browser_main_runner.cc (right): https://codereview.chromium.org/250723002/diff/1/content/browser/browser_main_runner.cc#newcode88 content/browser/browser_main_runner.cc:88: return 0; On 2014/04/24 22:39:27, Daniel Erat wrote: > ...
6 years, 8 months ago (2014-04-24 22:57:13 UTC) #3
Daniel Erat
https://codereview.chromium.org/250723002/diff/1/content/browser/browser_main_runner.cc File content/browser/browser_main_runner.cc (right): https://codereview.chromium.org/250723002/diff/1/content/browser/browser_main_runner.cc#newcode88 content/browser/browser_main_runner.cc:88: return 0; On 2014/04/24 22:57:14, sadrul wrote: > On ...
6 years, 8 months ago (2014-04-24 23:21:07 UTC) #4
sadrul
I also added a comment for BrowserMainRunner::Initialize() to mention the significance of the returned value. ...
6 years, 8 months ago (2014-04-25 02:34:47 UTC) #5
jam
https://codereview.chromium.org/250723002/diff/20001/content/browser/browser_main_runner.cc File content/browser/browser_main_runner.cc (right): https://codereview.chromium.org/250723002/diff/20001/content/browser/browser_main_runner.cc#newcode88 content/browser/browser_main_runner.cc:88: return 1; the comment says 0 or negative means ...
6 years, 8 months ago (2014-04-25 05:05:53 UTC) #6
sadrul
https://codereview.chromium.org/250723002/diff/20001/content/browser/browser_main_runner.cc File content/browser/browser_main_runner.cc (right): https://codereview.chromium.org/250723002/diff/20001/content/browser/browser_main_runner.cc#newcode88 content/browser/browser_main_runner.cc:88: return 1; On 2014/04/25 05:05:53, jam wrote: > the ...
6 years, 8 months ago (2014-04-25 10:43:35 UTC) #7
jam
lgtm
6 years, 8 months ago (2014-04-25 18:43:23 UTC) #8
sadrul
6 years, 8 months ago (2014-04-25 20:17:23 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 manually as r266231 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698