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

Unified Diff: chromeos/network/shill_property_handler.cc

Issue 299403012: Clean up shill fake implementations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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: chromeos/network/shill_property_handler.cc
diff --git a/chromeos/network/shill_property_handler.cc b/chromeos/network/shill_property_handler.cc
index 7996ac07e06df8d633044deb6c0a3efea358ae5c..c833106ce02759cf989d786fb670478130304af1 100644
--- a/chromeos/network/shill_property_handler.cc
+++ b/chromeos/network/shill_property_handler.cc
@@ -61,9 +61,11 @@ class ShillPropertyObserver : public ShillPropertyChangedObserver {
path_(path),
handler_(handler) {
if (type_ == ManagedState::MANAGED_TYPE_NETWORK) {
+ DVLOG(2) << "ShillPropertyObserver: Network: " << path;
DBusThreadManager::Get()->GetShillServiceClient()->
AddPropertyChangedObserver(dbus::ObjectPath(path_), this);
} else if (type_ == ManagedState::MANAGED_TYPE_DEVICE) {
+ DVLOG(2) << "ShillPropertyObserver: Device: " << path;
DBusThreadManager::Get()->GetShillDeviceClient()->
AddPropertyChangedObserver(dbus::ObjectPath(path_), this);
} else {
@@ -206,7 +208,8 @@ void ShillPropertyHandler::RequestProperties(ManagedState::ManagedType type,
if (pending_updates_[type].find(path) != pending_updates_[type].end())
return; // Update already requested.
- NET_LOG_DEBUG("Request Properties", path);
+ NET_LOG_DEBUG("Request Properties: " + ManagedState::TypeToString(type),
+ path);
pending_updates_[type].insert(path);
if (type == ManagedState::MANAGED_TYPE_NETWORK ||
type == ManagedState::MANAGED_TYPE_FAVORITE) {
@@ -289,6 +292,7 @@ void ShillPropertyHandler::CheckPendingStateListUpdates(
void ShillPropertyHandler::ManagerPropertyChanged(const std::string& key,
const base::Value& value) {
+ NET_LOG_DEBUG("ManagerPropertyChanged", key);
stevenjb 2014/05/28 22:47:22 This should be happening infrequently, i.e. it sho
if (key == shill::kDefaultServiceProperty) {
std::string service_path;
value.GetAsString(&service_path);
@@ -346,9 +350,8 @@ void ShillPropertyHandler::UpdateProperties(ManagedState::ManagedType type,
std::set<std::string>& requested_service_updates =
requested_updates_[ManagedState::MANAGED_TYPE_NETWORK]; // For favorites
std::set<std::string> new_requested_updates;
- NET_LOG_DEBUG(
- base::StringPrintf("UpdateProperties: %" PRIuS, entries.GetSize()),
- ManagedState::TypeToString(type));
+ NET_LOG_DEBUG("UpdateProperties: " + ManagedState::TypeToString(type),
+ base::StringPrintf("%" PRIuS, entries.GetSize()));
for (base::ListValue::const_iterator iter = entries.begin();
iter != entries.end(); ++iter) {
std::string path;

Powered by Google App Engine
This is Rietveld 408576698