| Index: chrome/browser/chromeos/extensions/networking_private_api.cc
|
| diff --git a/chrome/browser/chromeos/extensions/networking_private_api.cc b/chrome/browser/chromeos/extensions/networking_private_api.cc
|
| index e1dd6a6b203912d3f98545865852f6baee298833..07264a28749e03307d1cfa05d9b47b9c9820e837 100644
|
| --- a/chrome/browser/chromeos/extensions/networking_private_api.cc
|
| +++ b/chrome/browser/chromeos/extensions/networking_private_api.cc
|
| @@ -8,6 +8,7 @@
|
| #include "base/bind_helpers.h"
|
| #include "base/callback.h"
|
| #include "chrome/browser/extensions/extension_function_registry.h"
|
| +#include "chrome/browser/profiles/profile.h"
|
| #include "chrome/common/extensions/api/networking_private.h"
|
| #include "chromeos/dbus/dbus_thread_manager.h"
|
| #include "chromeos/dbus/shill_manager_client.h"
|
| @@ -71,7 +72,14 @@ bool NetworkingPrivateGetManagedPropertiesFunction::RunImpl() {
|
| api::GetManagedProperties::Params::Create(*args_);
|
| EXTENSION_FUNCTION_VALIDATE(params);
|
|
|
| + // The profile of the requesting browser.
|
| + Profile* requesting_profile = profile();
|
| + // TODO(pneubeck): Use ProfileHelper to obtain the userhash, once it provides
|
| + // that functionality. crbug/238623.
|
| + std::string userhash = requesting_profile->GetPath().BaseName().value();
|
| +
|
| ManagedNetworkConfigurationHandler::Get()->GetManagedProperties(
|
| + userhash,
|
| params->network_guid, // service path
|
| base::Bind(&NetworkingPrivateGetManagedPropertiesFunction::Success,
|
| this),
|
|
|