Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/constants_mac.h" | 5 #include "remoting/host/constants_mac.h" |
| 6 | 6 |
| 7 namespace remoting { | 7 namespace remoting { |
| 8 | 8 |
| 9 #define SERVICE_NAME "org.chromium.chromoting" | 9 #define SERVICE_NAME "org.chromium.chromoting" |
| 10 #define PREFPANE_BUNDLE_NAME "ChromeRemoteDesktop.prefPane" | |
|
Sergey Ulanov
2014/03/24 19:11:04
Pass these from gyp, so that they are correct for
weitao
2014/03/24 21:21:33
We need to do this for HOST_BUNDLE_NAME as well as
| |
| 11 #define HOST_BUNDLE_NAME "ChromeRemoteDesktopHost.bundle" | |
| 10 | 12 |
| 11 #define APPLICATIONS_DIR "/Applications/" | 13 #define APPLICATIONS_DIR "/Applications/" |
| 12 #define HELPER_TOOLS_DIR "/Library/PrivilegedHelperTools/" | 14 #define HELPER_TOOLS_DIR "/Library/PrivilegedHelperTools/" |
| 13 #define LAUNCH_AGENTS_DIR "/Library/LaunchAgents/" | 15 #define LAUNCH_AGENTS_DIR "/Library/LaunchAgents/" |
| 14 #define PREFERENCE_PANES_DIR "/Library/PreferencePanes/" | 16 #define PREFERENCE_PANES_DIR "/Library/PreferencePanes/" |
| 15 #define LOG_DIR "/var/log/" | 17 #define LOG_DIR "/var/log/" |
| 16 #define LOG_CONFIG_DIR "/etc/newsyslog.d/" | 18 #define LOG_CONFIG_DIR "/etc/newsyslog.d/" |
| 17 | 19 |
| 18 const char kServiceName[] = SERVICE_NAME; | 20 const char kServiceName[] = SERVICE_NAME; |
| 19 | 21 |
| 20 const char kPrefPaneFileName[] = SERVICE_NAME ".prefPane"; | 22 const char kPrefPaneFileName[] = PREFPANE_BUNDLE_NAME; |
| 21 const char kPrefPaneFilePath[] = PREFERENCE_PANES_DIR SERVICE_NAME ".prefPane"; | 23 const char kPrefPaneFilePath[] = PREFERENCE_PANES_DIR PREFPANE_BUNDLE_NAME; |
| 22 | 24 |
| 23 const char kHostConfigFileName[] = SERVICE_NAME ".json"; | 25 const char kHostConfigFileName[] = SERVICE_NAME ".json"; |
| 24 const char kHostConfigFilePath[] = HELPER_TOOLS_DIR SERVICE_NAME ".json"; | 26 const char kHostConfigFilePath[] = HELPER_TOOLS_DIR SERVICE_NAME ".json"; |
| 25 | 27 |
| 26 const char kHostHelperScriptPath[] = HELPER_TOOLS_DIR SERVICE_NAME ".me2me.sh"; | 28 const char kHostHelperScriptPath[] = HELPER_TOOLS_DIR SERVICE_NAME ".me2me.sh"; |
| 27 const char kHostBinaryPath[] = HELPER_TOOLS_DIR SERVICE_NAME ".me2me_host.app"; | 29 const char kHostBinaryPath[] = HELPER_TOOLS_DIR HOST_BUNDLE_NAME; |
| 28 const char kHostEnabledPath[] = HELPER_TOOLS_DIR SERVICE_NAME ".me2me_enabled"; | 30 const char kHostEnabledPath[] = HELPER_TOOLS_DIR SERVICE_NAME ".me2me_enabled"; |
| 29 | 31 |
| 30 const char kServicePlistPath[] = LAUNCH_AGENTS_DIR SERVICE_NAME ".plist"; | 32 const char kServicePlistPath[] = LAUNCH_AGENTS_DIR SERVICE_NAME ".plist"; |
| 31 | 33 |
| 32 const char kLogFilePath[] = LOG_DIR SERVICE_NAME ".log"; | 34 const char kLogFilePath[] = LOG_DIR SERVICE_NAME ".log"; |
| 33 const char kLogFileConfigPath[] = LOG_CONFIG_DIR SERVICE_NAME ".conf"; | 35 const char kLogFileConfigPath[] = LOG_CONFIG_DIR SERVICE_NAME ".conf"; |
| 34 | 36 |
| 35 const char kNativeMessagingManifestPath[] = | 37 const char kNativeMessagingManifestPath[] = |
| 36 "/Library/Google/Chrome/NativeMessagingHosts/" | 38 "/Library/Google/Chrome/NativeMessagingHosts/" |
| 37 "com.google.chrome.remote_desktop.json"; | 39 "com.google.chrome.remote_desktop.json"; |
| 38 | 40 |
| 39 const char kBrandedUninstallerPath[] = APPLICATIONS_DIR | 41 const char kBrandedUninstallerPath[] = APPLICATIONS_DIR |
| 40 "Chrome Remote Desktop Host Uninstaller.app"; | 42 "Chrome Remote Desktop Host Uninstaller.app"; |
| 41 const char kUnbrandedUninstallerPath[] = APPLICATIONS_DIR | 43 const char kUnbrandedUninstallerPath[] = APPLICATIONS_DIR |
| 42 "Chromoting Host Uninstaller.app"; | 44 "Chromoting Host Uninstaller.app"; |
| 43 | 45 |
| 44 } // namespace remoting | 46 } // namespace remoting |
| OLD | NEW |