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

Side by Side Diff: remoting/host/plugin/daemon_controller_win.cc

Issue 10579034: Removing incorrect usage of TO_L_STRING() macros. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 6 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
« no previous file with comments | « remoting/host/host_service_win.cc ('k') | remoting/host/plugin/daemon_installer_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/plugin/daemon_controller.h" 5 #include "remoting/host/plugin/daemon_controller.h"
6 6
7 #include <objbase.h> 7 #include <objbase.h>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/file_path.h" 13 #include "base/file_path.h"
14 #include "base/file_util.h" 14 #include "base/file_util.h"
15 #include "base/json/json_reader.h" 15 #include "base/json/json_reader.h"
16 #include "base/json/json_writer.h" 16 #include "base/json/json_writer.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "base/string16.h" 18 #include "base/string16.h"
19 #include "base/stringize_macros.h"
20 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
21 #include "base/time.h" 20 #include "base/time.h"
22 #include "base/timer.h" 21 #include "base/timer.h"
23 #include "base/utf_string_conversions.h" 22 #include "base/utf_string_conversions.h"
24 #include "base/values.h" 23 #include "base/values.h"
25 #include "base/win/scoped_bstr.h" 24 #include "base/win/scoped_bstr.h"
26 #include "base/win/scoped_comptr.h" 25 #include "base/win/scoped_comptr.h"
27 #include "base/win/windows_version.h" 26 #include "base/win/windows_version.h"
28 #include "remoting/base/scoped_sc_handle_win.h" 27 #include "remoting/base/scoped_sc_handle_win.h"
29 #include "remoting/host/branding.h" 28 #include "remoting/host/branding.h"
30 #include "remoting/host/plugin/daemon_installer_win.h" 29 #include "remoting/host/plugin/daemon_installer_win.h"
31 30
32 // MIDL-generated declarations and definitions. 31 // MIDL-generated declarations and definitions.
33 #include "remoting/host/elevated_controller.h" 32 #include "remoting/host/elevated_controller.h"
34 33
35 using base::win::ScopedBstr; 34 using base::win::ScopedBstr;
36 using base::win::ScopedComPtr; 35 using base::win::ScopedComPtr;
37 36
38 namespace remoting { 37 namespace remoting {
39 38
40 namespace { 39 namespace {
41 40
42 // ProgID of the daemon controller. 41 // ProgID of the daemon controller.
43 const char16 kDaemonController[] = 42 const wchar_t kDaemonController[] =
44 TO_L_STRING("ChromotingElevatedController.ElevatedController"); 43 L"ChromotingElevatedController.ElevatedController";
45 44
46 // The COM elevation moniker for the Elevated Controller. 45 // The COM elevation moniker for the Elevated Controller.
47 const char16 kDaemonControllerElevationMoniker[] = 46 const wchar_t kDaemonControllerElevationMoniker[] =
48 TO_L_STRING("Elevation:Administrator!new:") 47 L"Elevation:Administrator!new:"
49 TO_L_STRING("ChromotingElevatedController.ElevatedController"); 48 L"ChromotingElevatedController.ElevatedController";
50 49
51 // Name of the Daemon Controller's worker thread. 50 // Name of the Daemon Controller's worker thread.
52 const char kDaemonControllerThreadName[] = "Daemon Controller thread"; 51 const char kDaemonControllerThreadName[] = "Daemon Controller thread";
53 52
54 // The maximum interval between showing UAC prompts. 53 // The maximum interval between showing UAC prompts.
55 const int kUacTimeoutSec = 15 * 60; 54 const int kUacTimeoutSec = 15 * 60;
56 55
57 // A base::Thread implementation that initializes COM on the new thread. 56 // A base::Thread implementation that initializes COM on the new thread.
58 class ComThread : public base::Thread { 57 class ComThread : public base::Thread {
59 public: 58 public:
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 string16(static_cast<BSTR>(version), version.Length()))); 591 string16(static_cast<BSTR>(version), version.Length())));
593 } 592 }
594 593
595 } // namespace 594 } // namespace
596 595
597 scoped_ptr<DaemonController> remoting::DaemonController::Create() { 596 scoped_ptr<DaemonController> remoting::DaemonController::Create() {
598 return scoped_ptr<DaemonController>(new DaemonControllerWin()); 597 return scoped_ptr<DaemonController>(new DaemonControllerWin());
599 } 598 }
600 599
601 } // namespace remoting 600 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/host_service_win.cc ('k') | remoting/host/plugin/daemon_installer_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698