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

Unified Diff: ceee/ie/broker/broker_rpc_utils.cc

Issue 5258006: Restart of ceee_broker on crash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 | « ceee/ie/broker/broker_rpc_utils.h ('k') | ceee/ie/common/metrics_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ceee/ie/broker/broker_rpc_utils.cc
===================================================================
--- ceee/ie/broker/broker_rpc_utils.cc (revision 67905)
+++ ceee/ie/broker/broker_rpc_utils.cc (working copy)
@@ -14,22 +14,22 @@
// Local interprocess communication only.
const wchar_t kRpcProtocol[] = L"ncalrpc";
-std::wstring GetRpcEndPointAddress() {
- std::wstring end_point;
+std::wstring GetRpcEndpointAddress() {
+ std::wstring endpoint;
bool running_as_admin = false;
// CEEE running as regular user and CEEE running as elevated user will start
// different broker processes. So make end points names different to connect
// to appropriate one.
process_utils_win::IsCurrentProcessUacElevated(&running_as_admin);
if (running_as_admin)
- end_point += L"ADMIN-";
+ endpoint += L"ADMIN-";
std::wstring sid;
win_util::GetUserSidString(&sid);
- end_point += sid;
- end_point += L"-B4630D08-4621-41A1-A8D0-F1E98DA460D6";
+ endpoint += sid;
+ endpoint += L"-B4630D08-4621-41A1-A8D0-F1E98DA460D6";
// XP does not accept endpoints longer than 52.
- end_point.resize(std::min(52u, end_point.size()));
- return end_point;
+ endpoint.resize(std::min(52u, endpoint.size()));
+ return endpoint;
}
void __RPC_FAR * __RPC_USER midl_user_allocate(size_t len) {
« no previous file with comments | « ceee/ie/broker/broker_rpc_utils.h ('k') | ceee/ie/common/metrics_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698