| Index: components/arc/arc_bridge_service_impl.h
|
| diff --git a/components/arc/arc_bridge_service_impl.h b/components/arc/arc_bridge_service_impl.h
|
| index 6012201ca98eb3799b9974a13265b1a219ff99a3..60e6162785df7dda68a039cb0f5949141127ef47 100644
|
| --- a/components/arc/arc_bridge_service_impl.h
|
| +++ b/components/arc/arc_bridge_service_impl.h
|
| @@ -36,6 +36,11 @@ class ArcBridgeServiceImpl : public ArcBridgeService,
|
|
|
| void Shutdown() override;
|
|
|
| + // Normally, reconnecting after connection shutdown happens after a short
|
| + // delay. When testing, however, we'd like it to happen immediately to avoid
|
| + // adding unnecessary delays.
|
| + void DisableReconnectDelayForTesting();
|
| +
|
| private:
|
| friend class ArcBridgeTest;
|
| FRIEND_TEST_ALL_PREFIXES(ArcBridgeTest, Restart);
|
| @@ -69,6 +74,9 @@ class ArcBridgeServiceImpl : public ArcBridgeService,
|
| // lost. This should make the instance restart.
|
| bool reconnect_ = false;
|
|
|
| + // Delay the reconnection.
|
| + bool use_delay_before_reconnecting_ = true;
|
| +
|
| // WeakPtrFactory to use callbacks.
|
| base::WeakPtrFactory<ArcBridgeServiceImpl> weak_factory_;
|
|
|
|
|