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

Unified Diff: remoting/host/sas_injector_win.cc

Issue 11364112: Merge 165565 - Calling SendSAS() from a service to make sure that Secure Attention Sequence can be … (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1312/src/
Patch Set: Created 8 years, 1 month 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/sas_injector.h ('k') | remoting/host/win/session_desktop_environment_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/sas_injector_win.cc
===================================================================
--- remoting/host/sas_injector_win.cc (revision 166306)
+++ remoting/host/sas_injector_win.cc (working copy)
@@ -34,10 +34,10 @@
L"Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System";
const wchar_t kSoftwareSasValueName[] = L"SoftwareSASGeneration";
-const DWORD kEnableSoftwareSasByApps = 2;
+const DWORD kEnableSoftwareSasByServices = 1;
// Toggles the default software SAS generation policy to enable SAS generation
-// by applications. Non-default policy is not changed.
+// by services. Non-default policy is not changed.
class ScopedSoftwareSasPolicy {
public:
ScopedSoftwareSasPolicy();
@@ -89,7 +89,7 @@
// Override the default policy (i.e. there is no value in the registry) only.
if (!custom_policy) {
result = system_policy_.WriteValue(kSoftwareSasValueName,
- kEnableSoftwareSasByApps);
+ kEnableSoftwareSasByServices);
if (result != ERROR_SUCCESS) {
SetLastError(result);
LOG_GETLASTERROR(ERROR)
@@ -105,9 +105,9 @@
} // namespace
-// Sends the Secure Attention Sequence using the SendSAS() function from
-// sas.dll. This library is shipped starting from Win7/W2K8 R2 only. However
-// Win7 SDK includes a redistributable verion of the same library that works on
+// Sends Secure Attention Sequence using the SendSAS() function from sas.dll.
+// This library is shipped starting from Win7/W2K8 R2 only. However Win7 SDK
+// includes a redistributable verion of the same library that works on
// Vista/W2K8. We install the latter along with our binaries.
class SasInjectorWin : public SasInjector {
public:
@@ -170,7 +170,7 @@
}
// Enable software SAS generation by services and send SAS. SAS can still fail
- // if the policy does not allow applications to generate software SAS.
+ // if the policy does not allow services to generate software SAS.
ScopedSoftwareSasPolicy enable_sas;
if (!enable_sas.Apply())
return false;
« no previous file with comments | « remoting/host/sas_injector.h ('k') | remoting/host/win/session_desktop_environment_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698