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

Issue 2967943002: Update AuraInit to handle failed initialization (Closed)

Created:
3 years, 5 months ago by jonross
Modified:
3 years, 5 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, kalyank, sadrul, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

It is possible for AuraInit to fail initialization. If the remote ServiceManager closes while a Service is starting up, then the synchronous calls to Directory will fail before error states are received. This change follows up a previous change to AuraInit and QuickLauncher which was addressing these crashes in unittests. It refactors AuraInit to have an explicit initialization method. All callsites are updated to check the success of init, and to close cleanly upon failures. TBR=sky@chromium.org TEST=mash_browser_tests BUG=678687 Review-Url: https://codereview.chromium.org/2967943002 Cr-Commit-Position: refs/heads/master@{#484583} Committed: https://chromium.googlesource.com/chromium/src/+/14402447b7df16d16126dc49a3a44cf66c318c88

Patch Set 1 #

Total comments: 4

Patch Set 2 : Switch to a Create method for AuraInit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -67 lines) Patch
M ash/autoclick/mus/autoclick_application.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M ash/mus/window_manager_application.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M ash/touch_hud/mus/touch_hud_application.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M mash/catalog_viewer/catalog_viewer.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M mash/example/views_examples/views_examples.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download
M mash/example/window_type_launcher/window_type_launcher.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M mash/quick_launch/quick_launch.cc View 1 1 chunk +4 lines, -5 lines 0 comments Download
M mash/simple_wm/simple_wm.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M mash/task_viewer/task_viewer.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M ui/views/mus/aura_init.h View 1 1 chunk +26 lines, -17 lines 0 comments Download
M ui/views/mus/aura_init.cc View 1 3 chunks +53 lines, -34 lines 0 comments Download

Messages

Total messages: 25 (13 generated)
jonross
Hey Sadrul, Could you review this change? I previously updated AuraInit to provide information on ...
3 years, 5 months ago (2017-07-04 14:17:07 UTC) #4
sadrul
lgtm https://codereview.chromium.org/2967943002/diff/1/ui/views/mus/aura_init.h File ui/views/mus/aura_init.h (right): https://codereview.chromium.org/2967943002/diff/1/ui/views/mus/aura_init.h#newcode63 ui/views/mus/aura_init.h:63: bool Init( What do you think of making ...
3 years, 5 months ago (2017-07-05 14:49:25 UTC) #5
jonross
https://codereview.chromium.org/2967943002/diff/1/ui/views/mus/aura_init.h File ui/views/mus/aura_init.h (right): https://codereview.chromium.org/2967943002/diff/1/ui/views/mus/aura_init.h#newcode63 ui/views/mus/aura_init.h:63: bool Init( On 2017/07/05 14:49:25, sadrul wrote: > What ...
3 years, 5 months ago (2017-07-05 14:54:14 UTC) #6
jonross
https://codereview.chromium.org/2967943002/diff/1/ui/views/mus/aura_init.h File ui/views/mus/aura_init.h (right): https://codereview.chromium.org/2967943002/diff/1/ui/views/mus/aura_init.h#newcode77 ui/views/mus/aura_init.h:77: const std::string& resource_file_200_); On 2017/07/05 14:49:24, sadrul wrote: > ...
3 years, 5 months ago (2017-07-05 17:51:31 UTC) #7
jonross
I've switched the initialization format for AuraInit to a Create method. I'm TBRing sky@ for ...
3 years, 5 months ago (2017-07-05 17:52:46 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2967943002/40001
3 years, 5 months ago (2017-07-05 17:53:14 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/251532)
3 years, 5 months ago (2017-07-05 18:25:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2967943002/40001
3 years, 5 months ago (2017-07-05 18:35:43 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/251641)
3 years, 5 months ago (2017-07-05 19:18:36 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2967943002/40001
3 years, 5 months ago (2017-07-06 14:25:48 UTC) #21
commit-bot: I haz the power
Committed patchset #2 (id:40001) as https://chromium.googlesource.com/chromium/src/+/14402447b7df16d16126dc49a3a44cf66c318c88
3 years, 5 months ago (2017-07-06 14:38:56 UTC) #24
Fady Samuel
3 years, 5 months ago (2017-07-06 19:32:40 UTC) #25
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:40001) has been created in
https://codereview.chromium.org/2973103002/ by fsamuel@chromium.org.

The reason for reverting is: Causing chrome --mash to fail to start

[118236:118236:0706/142624.101546:3509128143561:ERROR:chrome_main_delegate.cc(1187)]
Main process exiting because service ash quit unexpectedly.
.

Powered by Google App Engine
This is Rietveld 408576698