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

Unified Diff: remoting/host/win/host_service.cc

Issue 10824166: Cleaned up usage of std::wstring in src/remoting. Added presubmit warning supressions for the reman… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 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 | « remoting/host/win/host_service.h ('k') | remoting/host/win/launch_process_with_token.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/host_service.cc
diff --git a/remoting/host/win/host_service.cc b/remoting/host/win/host_service.cc
index 3523921d5d5721d30ef173aaea3b53ac1a8ca911..0c6ccb504cae1cfef86f769853ac447fefc9cae4 100644
--- a/remoting/host/win/host_service.cc
+++ b/remoting/host/win/host_service.cc
@@ -91,7 +91,6 @@ namespace remoting {
HostService::HostService() :
console_session_id_(kInvalidSessionId),
run_routine_(&HostService::RunAsService),
- service_name_(kWindowsServiceName),
service_status_handle_(0),
stopped_event_(true, false) {
}
@@ -228,7 +227,7 @@ void HostService::RunMessageLoop(MessageLoop* message_loop) {
int HostService::RunAsService() {
SERVICE_TABLE_ENTRYW dispatch_table[] = {
- { const_cast<LPWSTR>(service_name_.c_str()), &HostService::ServiceMain },
+ { const_cast<LPWSTR>(kWindowsServiceName), &HostService::ServiceMain },
{ NULL, NULL }
};
@@ -348,7 +347,7 @@ VOID WINAPI HostService::ServiceMain(DWORD argc, WCHAR* argv[]) {
// Register the service control handler.
self->service_status_handle_ =
- RegisterServiceCtrlHandlerExW(self->service_name_.c_str(),
+ RegisterServiceCtrlHandlerExW(kWindowsServiceName,
&HostService::ServiceControlHandler,
self);
if (self->service_status_handle_ == 0) {
« no previous file with comments | « remoting/host/win/host_service.h ('k') | remoting/host/win/launch_process_with_token.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698