Initialize DBus in CreateInstance

We now expect the bus to be ready to go as soon as CreateInstance is
finished. The downside is that CreateInstance can now fail when the bus
isn't available, so we must handle nullptr returns.

Change-Id: I1e8d20f8d85d93e7e8b5e93ee1e5ba6043a347c4
Test: Verified commands continue to work
Bug: 26233663
5 files changed
tree: e43491e6ba7937088283516f30cf9921ac125c24
  1. binder_bindings/
  2. client_library/
  3. common/
  4. dbus_bindings/
  5. include/
  6. init/
  7. payload_consumer/
  8. payload_generator/
  9. sample_images/
  10. scripts/
  11. update_manager/
  12. update_payload_key/
  13. weaved/
  14. .gitignore
  15. Android.mk
  16. binder_main.cc
  17. binder_service.cc
  18. binder_service.h
  19. boot_control_android.cc
  20. boot_control_android.h
  21. boot_control_chromeos.cc
  22. boot_control_chromeos.h
  23. boot_control_chromeos_unittest.cc
  24. chrome_browser_proxy_resolver.cc
  25. chrome_browser_proxy_resolver.h
  26. chrome_browser_proxy_resolver_unittest.cc
  27. connection_manager.cc
  28. connection_manager.h
  29. connection_manager_interface.h
  30. connection_manager_unittest.cc
  31. daemon.cc
  32. daemon.h
  33. dbus_service.cc
  34. dbus_service.h
  35. dbus_service_unittest.cc
  36. dbus_test_utils.h
  37. fake_file_writer.h
  38. fake_p2p_manager.h
  39. fake_p2p_manager_configuration.h
  40. fake_shill_proxy.cc
  41. fake_shill_proxy.h
  42. fake_system_state.cc
  43. fake_system_state.h
  44. generate_pc_file.sh
  45. hardware_android.cc
  46. hardware_android.h
  47. hardware_chromeos.cc
  48. hardware_chromeos.h
  49. image_properties.h
  50. image_properties_android.cc
  51. image_properties_chromeos.cc
  52. libcros_proxy.cc
  53. libcros_proxy.h
  54. libupdate_engine-client-test.pc.in
  55. libupdate_engine-client.pc.in
  56. local_coverage_rate
  57. main.cc
  58. metrics.cc
  59. metrics.h
  60. metrics_utils.cc
  61. metrics_utils.h
  62. metrics_utils_unittest.cc
  63. mock_action.h
  64. mock_action_processor.h
  65. mock_connection_manager.h
  66. mock_file_writer.h
  67. mock_omaha_request_params.h
  68. mock_p2p_manager.h
  69. mock_payload_state.h
  70. mock_update_attempter.h
  71. MODULE_LICENSE_APACHE2
  72. NOTICE
  73. omaha_request_action.cc
  74. omaha_request_action.h
  75. omaha_request_action_unittest.cc
  76. omaha_request_params.cc
  77. omaha_request_params.h
  78. omaha_request_params_unittest.cc
  79. omaha_response.h
  80. omaha_response_handler_action.cc
  81. omaha_response_handler_action.h
  82. omaha_response_handler_action_unittest.cc
  83. OWNERS
  84. p2p_manager.cc
  85. p2p_manager.h
  86. p2p_manager_unittest.cc
  87. payload_state.cc
  88. payload_state.h
  89. payload_state_interface.h
  90. payload_state_unittest.cc
  91. PRESUBMIT.cfg
  92. proxy_resolver.cc
  93. proxy_resolver.h
  94. real_system_state.cc
  95. real_system_state.h
  96. run_unittests
  97. sample_omaha_v3_response.xml
  98. shill_proxy.cc
  99. shill_proxy.h
  100. shill_proxy_interface.h
  101. system_state.h
  102. tar_bunzip2.gypi
  103. test_http_server.cc
  104. testrunner.cc
  105. unittest_key.pem
  106. unittest_key2.pem
  107. update_attempter.cc
  108. update_attempter.h
  109. update_attempter_unittest.cc
  110. update_engine-client.gyp
  111. update_engine.conf
  112. update_engine.gyp
  113. update_engine.rc
  114. update_engine_client.cc
  115. update_metadata.proto
  116. update_status_utils.cc
  117. update_status_utils.h
  118. UpdateEngine.conf
  119. WATCHLISTS
  120. weave_service.cc
  121. weave_service.h
  122. weave_service_factory.cc
  123. weave_service_factory.h
  124. weave_service_interface.h