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

Unified Diff: remoting/host/constants_mac.h

Issue 10807061: [Chromoting] Update uninstaller to facilitate testing automation. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « no previous file | remoting/host/constants_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/constants_mac.h
===================================================================
--- remoting/host/constants_mac.h (revision 148248)
+++ remoting/host/constants_mac.h (working copy)
@@ -8,22 +8,50 @@
namespace remoting {
// The name of the Remoting Host service that is registered with launchd.
-#define kServiceName "org.chromium.chromoting"
+extern const char kServiceName[];
// Use separate named notifications for success and failure because sandboxed
// components can't include a dictionary when sending distributed notifications.
// The preferences panel is not yet sandboxed, but err on the side of caution.
-#define kUpdateSucceededNotificationName kServiceName ".update_succeeded"
-#define kUpdateFailedNotificationName kServiceName ".update_failed"
+// These are #defines because they are used with CFSTR macro, which requires
+// string literals.
+#define UPDATE_SUCCEEDED_NOTIFICATION_NAME \
+ "org.chromium.chromoting.update_succeeded"
+#define UPDATE_FAILED_NOTIFICATION_NAME "org.chromium.chromoting.update_failed"
-#define kHostConfigDir "/Library/PrivilegedHelperTools/"
-// This helper tool is executed as root to enable/disable/configure the host
+// Chromoting's preference pane file.
+extern const char kPrefPaneFileName[];
+extern const char kPrefPaneFilePath[];
+
+// Use a single configuration file, instead of separate "auth" and "host" files.
+// This is because the SetConfigAndStart() API only provides a single
+// dictionary, and splitting this into two dictionaries would require
+// knowledge of which keys belong in which files.
+extern const char kHostConfigFileName[];
+extern const char kHostConfigFilePath[];
+
+// This helper script is executed as root to enable/disable/configure the host
// service.
// It is also used (as non-root) to provide version information for the
// installed host components.
-extern const char kHostHelperTool[];
+extern const char kHostHelperScriptPath[];
+// Path to the service binary (.app).
+extern const char kHostBinaryPath[];
+
+// If this file exists, it means that the host is enabled for sharing.
+extern const char kHostEnabledPath[];
+
+// The .plist file for the Chromoting service.
+extern const char kServicePlistPath[];
+
+// The branded and unbranded names for the uninstaller.
+// This is the only file that changes names based on branding. We define both
+// because we want local dev builds to be able to clean up both files.
+extern const char kBrandedUninstallerPath[];
+extern const char kUnbrandedUninstallerPath[];
+
} // namespace remoting
#endif // REMOTING_HOST_CONSTANTS_MAC_H_
« no previous file with comments | « no previous file | remoting/host/constants_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698