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

Unified Diff: net/base/network_change_notifier_linux.cc

Issue 9373039: Allow dbus clients to silence logging when a service is unavailable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
Index: net/base/network_change_notifier_linux.cc
diff --git a/net/base/network_change_notifier_linux.cc b/net/base/network_change_notifier_linux.cc
index 99167dc93610247b38ac3c6f33f3b0d3e523c896..cbb53fc6305b81e8c0069c38a995fbf446e913eb 100644
--- a/net/base/network_change_notifier_linux.cc
+++ b/net/base/network_change_notifier_linux.cc
@@ -136,8 +136,8 @@ void NetworkManagerApi::Init() {
}
dbus::ObjectProxy* proxy =
- system_bus_->GetObjectProxy(kNetworkManagerServiceName,
- kNetworkManagerPath);
+ system_bus_->GetObjectProxyIgnoreUnknownService(
satorux1 2012/02/10 08:12:52 Please add some comment why you do this. Having a
adamk 2012/02/10 17:57:16 Split out into another patch. Sorry, the lack of c
+ kNetworkManagerServiceName, kNetworkManagerPath);
// Get the initial state asynchronously.
dbus::MethodCall method_call(DBUS_INTERFACE_PROPERTIES, "Get");

Powered by Google App Engine
This is Rietveld 408576698