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

Side by Side Diff: chrome/installer/mac/app/AuthorizedInstall.h

Issue 2243863003: Added authorized install with a script to do the copy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed to OO design Created 4 years, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_
Anna Zeng 2016/08/18 15:57:16 Is there a test file for this new class? Let's add
ivanhernandez 2016/08/22 15:34:49 Will probably be on the next patch :)
6 #define CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_
7
8 #import <Foundation/Foundation.h>
9 #import <Security/Security.h>
10
11 @interface AuthorizedInstall : NSObject {
12 AuthorizationRef authRef_;
13 OSStatus status_;
14 FILE* communicationPipe_;
Anna Zeng 2016/08/18 15:57:16 authRef_, status_, and communicationPipe_ can all
ivanhernandez 2016/08/22 15:34:49 Done.
15 }
16
17 // Asks for user password and starts tool with privileged permissions.
18 - (BOOL)authorizeInstallationTool;
Anna Zeng 2016/08/18 15:57:16 Can we make this the init function?
ivanhernandez 2016/08/22 15:34:49 Probably want to use a name other than init to bet
19
20 // Allows this program to communicate with the child process.
21 - (void)sendMessageToTool:(NSString*)message;
Anna Zeng 2016/08/18 15:57:16 I think the preferred API is a function that doesn
ivanhernandez 2016/08/22 15:34:49 Done.
22
23 @end
24
25 #endif // CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/installer/mac/app/AuthorizedInstall.m » ('j') | chrome/installer/mac/app/AuthorizedInstall.m » ('J')

Powered by Google App Engine
This is Rietveld 408576698