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

Side by Side Diff: remoting/host/branding.cc

Issue 9953002: The me2me host is now configurable from the web UI on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moving the Windows service name to a common location. Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
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
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 const char kWindowsServiceName[] = "chromoting";
Sergey Ulanov 2012/03/30 07:42:35 I thin we should use something else (e.g. chrome_r
alexeypa (please no reviews) 2012/03/30 16:30:55 We will if we decide to make the official and non-
38
37 FilePath GetConfigDir() { 39 FilePath GetConfigDir() {
38 FilePath app_data_dir; 40 FilePath app_data_dir;
39 41
40 #if defined(OS_WIN) 42 #if defined(OS_WIN)
41 PathService::Get(base::DIR_LOCAL_APP_DATA, &app_data_dir); 43 PathService::Get(base::DIR_LOCAL_APP_DATA, &app_data_dir);
42 #elif defined(OS_MACOSX) 44 #elif defined(OS_MACOSX)
43 PathService::Get(base::DIR_APP_DATA, &app_data_dir); 45 PathService::Get(base::DIR_APP_DATA, &app_data_dir);
44 #else 46 #else
45 app_data_dir = file_util::GetHomeDir(); 47 app_data_dir = file_util::GetHomeDir();
46 #endif 48 #endif
47 49
48 return app_data_dir.Append(kConfigDir); 50 return app_data_dir.Append(kConfigDir);
49 } 51 }
50 52
51 } // namespace remoting 53 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698