#include "base/values.h"
#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/shill_profile_client.h"
+#include "chromeos/network/network_type_pattern.h"
#include "chromeos/network/network_ui_data.h"
#include "chromeos/network/onc/onc_signature.h"
#include "chromeos/network/onc/onc_translator.h"
std::string auth;
ethernet->GetStringWithoutPathExpansion(::onc::ethernet::kAuthentication,
&auth);
- if (auth == ::onc::ethernet::kNone)
+ if (auth == ::onc::ethernet::kAuthenticationNone)
return;
}
STLDeleteValues(&all_policies_);
// Notify the handler about all policies being applied, so that the network
// lists can be updated.
- handler_->OnPoliciesApplied();
+ if (handler_)
+ handler_->OnPoliciesApplied();
}
void PolicyApplicator::ApplyRemainingPolicies() {