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

Issue 5258006: Restart of ceee_broker on crash. (Closed)

Created:
10 years ago by Vitaly Buka (NO REVIEWS)
Modified:
9 years, 7 months ago
Reviewers:
siggi, MAD, Vitaly Buka corp, sigurdur.asgeirsson, Sigurður Ásgeirsson
CC:
chromium-reviews, Paweł Hajdan Jr., ceee-reviews_chromium.org
Visibility:
Public.

Description

Restart of ceee_broker on crash. Code re-factoring and cleanup. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=67928

Patch Set 1 : '' #

Total comments: 10

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 55

Patch Set 4 : '' #

Total comments: 15

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+287 lines, -143 lines) Patch
M ceee/ie/broker/broker_rpc_client.h View 1 2 3 4 5 3 chunks +18 lines, -5 lines 0 comments Download
M ceee/ie/broker/broker_rpc_client.cc View 1 2 3 4 5 5 chunks +104 lines, -64 lines 0 comments Download
M ceee/ie/broker/broker_rpc_lib.idl View 1 2 3 4 5 1 chunk +16 lines, -21 lines 0 comments Download
M ceee/ie/broker/broker_rpc_server.cc View 1 2 3 4 5 5 chunks +44 lines, -26 lines 0 comments Download
M ceee/ie/broker/broker_rpc_unittest.cc View 1 2 3 4 5 6 chunks +81 lines, -11 lines 0 comments Download
M ceee/ie/broker/broker_rpc_utils.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ceee/ie/broker/broker_rpc_utils.cc View 1 2 3 4 5 1 chunk +7 lines, -7 lines 0 comments Download
M ceee/ie/common/metrics_util_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ceee/ie/plugin/bho/browser_helper_object.cc View 1 2 3 4 5 3 chunks +4 lines, -3 lines 0 comments Download
M ceee/ie/plugin/bho/browser_helper_object_unittest.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ceee/ie/plugin/bho/cookie_accountant.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ceee/ie/plugin/bho/executor.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ceee/ie/plugin/bho/mediumtest_browser_helper_object.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M ceee/ie/plugin/bho/webrequest_notifier.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M ceee/ie/testing/mock_broker_and_friends.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Vitaly Buka (NO REVIEWS)
10 years ago (2010-11-30 06:20:32 UTC) #1
siggi_google.com
I'm pretty sure allocating a new binding for each new server is superfluous. The RPC ...
10 years ago (2010-11-30 13:46:25 UTC) #2
Sigurður Ásgeirsson
Very cool use of the tuple class. I'm going to wait with further review until ...
10 years ago (2010-11-30 13:47:48 UTC) #3
Vitaly Buka corp
Actually context handles was initial idea. But I missed the point about 'handle becomes invalid ...
10 years ago (2010-11-30 17:13:40 UTC) #4
Vitaly Buka (NO REVIEWS)
http://codereview.chromium.org/5258006/diff/16001/ceee/ie/broker/broker_rpc_client.cc File ceee/ie/broker/broker_rpc_client.cc (right): http://codereview.chromium.org/5258006/diff/16001/ceee/ie/broker/broker_rpc_client.cc#newcode185 ceee/ie/broker/broker_rpc_client.cc:185: Params params) { I need something modifiable to change ...
10 years ago (2010-12-01 01:20:12 UTC) #5
Sigurður Ásgeirsson
looking pretty sweet! http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_client.cc File ceee/ie/broker/broker_rpc_client.cc (right): http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_client.cc#newcode26 ceee/ie/broker/broker_rpc_client.cc:26: HRESULT BindRpc(std::wstring endpoint, RPC_BINDING_HANDLE* binding_handle) { ...
10 years ago (2010-12-01 14:23:54 UTC) #6
MAD
drive by review... http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_client.cc File ceee/ie/broker/broker_rpc_client.cc (right): http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_client.cc#newcode29 ceee/ie/broker/broker_rpc_client.cc:29: DCHECK(!protocol.empty()); Why do we need to ...
10 years ago (2010-12-01 16:35:23 UTC) #7
siggi_google.com
Can I ask you to fix the CL description as well. The first sentence should ...
10 years ago (2010-12-01 17:40:54 UTC) #8
Vitaly Buka corp
http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_client.cc File ceee/ie/broker/broker_rpc_client.cc (right): http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_client.cc#newcode26 ceee/ie/broker/broker_rpc_client.cc:26: HRESULT BindRpc(std::wstring endpoint, RPC_BINDING_HANDLE* binding_handle) { I need modifiable ...
10 years ago (2010-12-01 19:06:04 UTC) #9
Sigurður Ásgeirsson
lgtm with a last set of nits. http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_unittest.cc File ceee/ie/broker/broker_rpc_unittest.cc (right): http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_unittest.cc#newcode104 ceee/ie/broker/broker_rpc_unittest.cc:104: HRESULT StartServer(IUnknown** ...
10 years ago (2010-12-01 19:29:38 UTC) #10
MAD
LGTM2 with some nits too... Thanks! BYE MAD http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_client.cc File ceee/ie/broker/broker_rpc_client.cc (right): http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_client.cc#newcode174 ceee/ie/broker/broker_rpc_client.cc:174: params.a ...
10 years ago (2010-12-01 19:59:40 UTC) #11
Vitaly Buka corp
http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_unittest.cc File ceee/ie/broker/broker_rpc_unittest.cc (right): http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_unittest.cc#newcode104 ceee/ie/broker/broker_rpc_unittest.cc:104: HRESULT StartServer(IUnknown** server) { I know that this is ...
10 years ago (2010-12-01 20:50:29 UTC) #12
Sigurður Ásgeirsson
lgtm http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_unittest.cc File ceee/ie/broker/broker_rpc_unittest.cc (right): http://codereview.chromium.org/5258006/diff/36001/ceee/ie/broker/broker_rpc_unittest.cc#newcode104 ceee/ie/broker/broker_rpc_unittest.cc:104: HRESULT StartServer(IUnknown** server) { On 2010/12/01 20:50:30, Vitaly ...
10 years ago (2010-12-01 20:52:46 UTC) #13
MAD
10 years ago (2010-12-01 21:09:16 UTC) #14
LGTM again, with just one more comment...

Thanks again!

BYE
MAD

http://codereview.chromium.org/5258006/diff/70001/ceee/ie/broker/broker_rpc_s...
File ceee/ie/broker/broker_rpc_server.cc (right):

http://codereview.chromium.org/5258006/diff/70001/ceee/ie/broker/broker_rpc_s...
ceee/ie/broker/broker_rpc_server.cc:30: if (protocol.empty() ||
endpoint.empty())
On 2010/12/01 20:50:30, Vitaly Buka corp wrote:
> But we will crash on protocol[0] if system out of memory.
> 
> On 2010/12/01 19:59:40, MAD wrote:
> > I think the test for protocol not being empty is not needed...
> 

Thus, another reason not to copy this in a std::wstring... :-) I wonder if a
const_cast would be the lesser of the two evils... 

But fine, you can leave it like that, I don't really like it, but I guess it's
OK...

Powered by Google App Engine
This is Rietveld 408576698