| Index: sandbox/win/src/app_container.cc
|
| diff --git a/sandbox/win/src/app_container.cc b/sandbox/win/src/app_container.cc
|
| index f8d754191592341cd2e37390c5f91cc8501713a8..1737d908f9c571a6ba259892a43bae6733ccbe63 100644
|
| --- a/sandbox/win/src/app_container.cc
|
| +++ b/sandbox/win/src/app_container.cc
|
| @@ -74,26 +74,14 @@ ResultCode AppContainerAttributes::SetAppContainer(
|
| return SBOX_ALL_OK;
|
| }
|
|
|
| -ResultCode AppContainerAttributes::ShareForStartup(
|
| - base::win::StartupInformation* startup_information) const {
|
| - // The only thing we support so far is an AppContainer.
|
| - if (!capabilities_.AppContainerSid)
|
| - return SBOX_ERROR_INVALID_APP_CONTAINER;
|
| -
|
| - if (!startup_information->UpdateProcThreadAttribute(
|
| - PROC_THREAD_ATTRIBUTE_SECURITY_CAPABILITIES,
|
| - const_cast<SECURITY_CAPABILITIES*>(&capabilities_),
|
| - sizeof(capabilities_))) {
|
| - DPLOG(ERROR) << "Failed UpdateProcThreadAttribute";
|
| - return SBOX_ERROR_CANNOT_INIT_APPCONTAINER;
|
| - }
|
| - return SBOX_ALL_OK;
|
| -}
|
| -
|
| bool AppContainerAttributes::HasAppContainer() const {
|
| return (capabilities_.AppContainerSid != NULL);
|
| }
|
|
|
| +const SECURITY_CAPABILITIES& AppContainerAttributes::GetCapabilities() const {
|
| + return capabilities_;
|
| +}
|
| +
|
| ResultCode CreateAppContainer(const base::string16& sid,
|
| const base::string16& name) {
|
| PSID local_sid;
|
|
|