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

Unified 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 BUILD.gn so that only the app would compile AuthorizedInstall.m and not the tests. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/mac/app/AppDelegate.m ('k') | chrome/installer/mac/app/AuthorizedInstall.m » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8ee0efafb9c82e5311b09407b7d6bbc952fe739a
--- /dev/null
+++ b/chrome/installer/mac/app/AuthorizedInstall.h
@@ -0,0 +1,22 @@
+// 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>
+
+@interface AuthorizedInstall : NSObject
+
+// Attempts to gain elevated permissions and starts a subprocess.
+- (BOOL)loadInstallationTool;
+
+// Signals the tool to begin the installation. Returns the path to the
+// installed app.
+- (NSString*)startInstall:(NSString*)appBundlePath;
+
+@end
+
+#endif // CHROME_INSTALLER_MAC_APP_AUTHORIZEDINSTALL_H_
« no previous file with comments | « chrome/installer/mac/app/AppDelegate.m ('k') | chrome/installer/mac/app/AuthorizedInstall.m » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698