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

Unified Diff: components/arc/arc_bridge_service_impl.h

Issue 1925183004: arc_bridge: Add more logging, plus cleanup (Closed) Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Fixed unit tests Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/arc/arc_bridge_service.cc ('k') | components/arc/arc_bridge_service_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « components/arc/arc_bridge_service.cc ('k') | components/arc/arc_bridge_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698