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

Unified Diff: chromeos/network/managed_network_configuration_handler_impl.h

Issue 2828713002: Enable client certificate patterns in device ONC policy (Closed)
Patch Set: Addressed comments - more DCHECKs, use PostTask..WithReply in client_cert_resolver.cc. Created 3 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
Index: chromeos/network/managed_network_configuration_handler_impl.h
diff --git a/chromeos/network/managed_network_configuration_handler_impl.h b/chromeos/network/managed_network_configuration_handler_impl.h
index 3a45d745cac120c9cbd15c0e73a4a24b51573532..2aee0d31f5f9dfdd4ce1e57546c3c8b30d35cbba 100644
--- a/chromeos/network/managed_network_configuration_handler_impl.h
+++ b/chromeos/network/managed_network_configuration_handler_impl.h
@@ -95,7 +95,8 @@ class CHROMEOS_EXPORT ManagedNetworkConfigurationHandlerImpl
const base::DictionaryValue* FindPolicyByGuidAndProfile(
const std::string& guid,
- const std::string& profile_path) const override;
+ const std::string& profile_path,
+ onc::ONCSource* onc_source) const override;
// NetworkProfileObserver overrides
void OnProfileAdded(const NetworkProfile& profile) override;
@@ -155,7 +156,11 @@ class CHROMEOS_EXPORT ManagedNetworkConfigurationHandlerImpl
const std::string& service_path,
std::unique_ptr<base::DictionaryValue> shill_properties);
+ // Returns the Policies for the given |userhash|, or the device policies if
+ // |userhash| is empty.
const Policies* GetPoliciesForUser(const std::string& userhash) const;
+ // Returns the Policies for the given network |profile|. These could be either
+ // user or device policies.
const Policies* GetPoliciesForProfile(const NetworkProfile& profile) const;
void OnPolicyAppliedToNetwork(const std::string& service_path,

Powered by Google App Engine
This is Rietveld 408576698