| 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/branding.h" | 5 #include "remoting/host/branding.h" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/path_service.h" | 8 #include "base/path_service.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 FILE_PATH_LITERAL("Chrome Remote Desktop"); | 27 FILE_PATH_LITERAL("Chrome Remote Desktop"); |
| 28 #else | 28 #else |
| 29 const FilePath::CharType kConfigDir[] = | 29 const FilePath::CharType kConfigDir[] = |
| 30 FILE_PATH_LITERAL(".config/chrome-remote-desktop"); | 30 FILE_PATH_LITERAL(".config/chrome-remote-desktop"); |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 } // namespace | 33 } // namespace |
| 34 | 34 |
| 35 namespace remoting { | 35 namespace remoting { |
| 36 | 36 |
| 37 #if defined(OS_WIN) |
| 38 const char kWindowsServiceName[] = "chromoting"; |
| 39 #endif |
| 40 |
| 37 FilePath GetConfigDir() { | 41 FilePath GetConfigDir() { |
| 38 FilePath app_data_dir; | 42 FilePath app_data_dir; |
| 39 | 43 |
| 40 #if defined(OS_WIN) | 44 #if defined(OS_WIN) |
| 41 PathService::Get(base::DIR_LOCAL_APP_DATA, &app_data_dir); | 45 PathService::Get(base::DIR_LOCAL_APP_DATA, &app_data_dir); |
| 42 #elif defined(OS_MACOSX) | 46 #elif defined(OS_MACOSX) |
| 43 PathService::Get(base::DIR_APP_DATA, &app_data_dir); | 47 PathService::Get(base::DIR_APP_DATA, &app_data_dir); |
| 44 #else | 48 #else |
| 45 app_data_dir = file_util::GetHomeDir(); | 49 app_data_dir = file_util::GetHomeDir(); |
| 46 #endif | 50 #endif |
| 47 | 51 |
| 48 return app_data_dir.Append(kConfigDir); | 52 return app_data_dir.Append(kConfigDir); |
| 49 } | 53 } |
| 50 | 54 |
| 51 } // namespace remoting | 55 } // namespace remoting |
| OLD | NEW |