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

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
Index: ceee/ie/broker/broker_rpc_utils.cc
===================================================================
--- ceee/ie/broker/broker_rpc_utils.cc (revision 67655)
+++ 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<size_t>(52, endpoint.size()));
Sigurður Ásgeirsson 2010/12/01 14:23:54 back to 52U?
Vitaly Buka corp 2010/12/01 19:06:04 it does not matter with <size_t> However if you li
+ return endpoint;
}
void __RPC_FAR * __RPC_USER midl_user_allocate(size_t len) {

Powered by Google App Engine
This is Rietveld 408576698