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

Unified Diff: components/arc/net/arc_net_host_impl.h

Issue 2541843003: arc: Reduce logspam when ARC is not enabled/available (Closed)
Patch Set: Created 4 years 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
Index: components/arc/net/arc_net_host_impl.h
diff --git a/components/arc/net/arc_net_host_impl.h b/components/arc/net/arc_net_host_impl.h
index 58248c8faeb2786d8999c5a4177d46cd56b0aaa4..c0114a990024a8547b2b3010f019d244cec3cdc2 100644
--- a/components/arc/net/arc_net_host_impl.h
+++ b/components/arc/net/arc_net_host_impl.h
@@ -80,6 +80,7 @@ class ArcNetHostImpl : public ArcService,
// Overridden from ArcBridgeService::InterfaceObserver<mojom::NetInstance>:
void OnInstanceReady() override;
+ void OnInstanceClosed() override;
private:
void DefaultNetworkSuccessCallback(const std::string& service_path,
@@ -103,6 +104,10 @@ class ArcNetHostImpl : public ArcService,
const std::string& error_name,
std::unique_ptr<base::DictionaryValue> error_data);
+ // True if the chrome::NetworkStateHandler is currently being observed for
+ // state changes.
+ bool observing_network_state_ = false;
+
std::string cached_service_path_;
std::string cached_guid_;

Powered by Google App Engine
This is Rietveld 408576698