Index: remoting/host/win/elevated_controller.cc |
diff --git a/remoting/host/win/elevated_controller.cc b/remoting/host/win/elevated_controller.cc |
index 62d70c4f0ac54f06ea43f5b9422672e9d1485912..63c2dc8d4557a8c97df54389d96e93514248221f 100644 |
--- a/remoting/host/win/elevated_controller.cc |
+++ b/remoting/host/win/elevated_controller.cc |
@@ -52,10 +52,11 @@ const char kUnprivilegedConfigFileSecurityDescriptor[] = |
// Configuration keys. |
const char kHostId[] = "host_id"; |
const char kXmppLogin[] = "xmpp_login"; |
+const char kHostOwner[] = "host_owner"; |
const char kHostSecretHash[] = "host_secret_hash"; |
// The configuration keys that cannot be specified in UpdateConfig(). |
-const char* const kReadonlyKeys[] = { kHostId, kXmppLogin }; |
+const char* const kReadonlyKeys[] = { kHostId, kHostOwner, kXmppLogin }; |
// The configuration keys whose values may be read by GetConfig(). |
const char* const kUnprivilegedConfigKeys[] = { kHostId, kXmppLogin }; |
@@ -223,7 +224,8 @@ HRESULT WriteConfig(const char* content, size_t length, HWND owner_window) { |
return E_FAIL; |
} |
std::string email, host_id, host_secret_hash; |
- if (!config_dict->GetString(kXmppLogin, &email) || |
+ if (!(config_dict->GetString(kHostOwner, &email) || |
alexeypa (please no reviews)
2013/09/20 20:33:24
nit: Is there a way to make it more explicit that
rmsousa
2013/09/20 23:10:50
Done.
|
+ config_dict->GetString(kXmppLogin, &email)) || |
!config_dict->GetString(kHostId, &host_id) || |
!config_dict->GetString(kHostSecretHash, &host_secret_hash)) { |
return E_FAIL; |