| Index: chrome/browser/chromeos/net/onc_utils.cc
|
| diff --git a/chrome/browser/chromeos/net/onc_utils.cc b/chrome/browser/chromeos/net/onc_utils.cc
|
| index 2636be9877509c7f0625a794f4ed953b1500ab7b..7f7dc2c6d34b1eff548ed816c4c120fc30f5b620 100644
|
| --- a/chrome/browser/chromeos/net/onc_utils.cc
|
| +++ b/chrome/browser/chromeos/net/onc_utils.cc
|
| @@ -12,6 +12,7 @@
|
| #include "chrome/browser/chromeos/login/user_manager.h"
|
| #include "chrome/browser/chromeos/ui_proxy_config.h"
|
| #include "chrome/browser/prefs/proxy_config_dictionary.h"
|
| +#include "chromeos/network/managed_network_configuration_handler.h"
|
| #include "chromeos/network/network_configuration_handler.h"
|
| #include "chromeos/network/network_handler.h"
|
| #include "chromeos/network/network_profile.h"
|
| @@ -243,5 +244,14 @@ void ImportNetworksForUser(const std::string& hashed_username,
|
| }
|
| }
|
|
|
| +const base::DictionaryValue* FindPolicyForActiveUser(
|
| + const std::string& guid,
|
| + onc::ONCSource* onc_source) {
|
| + const User* user = UserManager::Get()->GetActiveUser();
|
| + std::string username_hash = user ? user->username_hash() : std::string();
|
| + return NetworkHandler::Get()->managed_network_configuration_handler()->
|
| + FindPolicyByGUID(username_hash, guid, onc_source);
|
| +}
|
| +
|
| } // namespace onc
|
| } // namespace chromeos
|
|
|