| Index: chrome/installer/mac/app/AuthorizedInstall.h
|
| diff --git a/chrome/installer/mac/app/AuthorizedInstall.h b/chrome/installer/mac/app/AuthorizedInstall.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..db067669625910fb21cc623be6c02f67e538f6e4
|
| --- /dev/null
|
| +++ b/chrome/installer/mac/app/AuthorizedInstall.h
|
| @@ -0,0 +1,24 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_
|
| +#define CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_
|
| +
|
| +#import <Foundation/Foundation.h>
|
| +#import <Security/Security.h>
|
| +
|
| +// Calls on the other methods to install Chrome as admin
|
| +void attemptAuthorizedInstall();
|
| +
|
| +// Asks the user to authenticate as admin user.
|
| +BOOL attemptAuthorization(AuthorizationRef* authRef, OSStatus* status);
|
| +
|
| +// Moves the first item in args to the second item in args with root
|
| +// permissions.
|
| +BOOL authorizedMoveToApplications(AuthorizationRef* authRef,
|
| + OSStatus* status,
|
| + const char* toolPath,
|
| + const char** args);
|
| +
|
| +#endif // CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_
|
|
|