| Index: components/arc/arc_bridge_bootstrap.cc
|
| diff --git a/components/arc/arc_bridge_bootstrap.cc b/components/arc/arc_bridge_bootstrap.cc
|
| index e06fdb1a704a472fe8458b50a929d578db22bcf0..9cb38a70456e552ec90fb914facac749ce596622 100644
|
| --- a/components/arc/arc_bridge_bootstrap.cc
|
| +++ b/components/arc/arc_bridge_bootstrap.cc
|
| @@ -10,6 +10,7 @@
|
|
|
| #include <utility>
|
|
|
| +#include "base/command_line.h"
|
| #include "base/files/file_path.h"
|
| #include "base/files/file_util.h"
|
| #include "base/location.h"
|
| @@ -21,6 +22,7 @@
|
| #include "base/threading/thread_checker.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| #include "base/threading/worker_pool.h"
|
| +#include "chromeos/chromeos_switches.h"
|
| #include "chromeos/cryptohome/cryptohome_parameters.h"
|
| #include "chromeos/dbus/dbus_method_call_status.h"
|
| #include "chromeos/dbus/dbus_thread_manager.h"
|
| @@ -296,10 +298,17 @@ void ArcBridgeBootstrapImpl::OnSocketCreated(base::ScopedFD socket_fd) {
|
| const cryptohome::Identification cryptohome_id(
|
| user_manager->GetPrimaryUser()->GetAccountId());
|
|
|
| + // Read the disable-arc-boot-completed-broadcast flag
|
| + base::CommandLine *command_line = base::CommandLine::ForCurrentProcess();
|
| + bool disable_arc_boot_completed_broadcast =
|
| + command_line->HasSwitch(
|
| + chromeos::switches::kDisableArcBootCompletedBroadcast);
|
| +
|
| chromeos::SessionManagerClient* session_manager_client =
|
| chromeos::DBusThreadManager::Get()->GetSessionManagerClient();
|
| session_manager_client->StartArcInstance(
|
| cryptohome_id,
|
| + disable_arc_boot_completed_broadcast,
|
| base::Bind(&ArcBridgeBootstrapImpl::OnInstanceStarted,
|
| weak_factory_.GetWeakPtr(), base::Passed(&socket_fd)));
|
| }
|
|
|