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

Issue 5606005: DCHECK to detect invalid BrokerRpcClient usage. (Closed)

Created:
10 years ago by Vitaly Buka (NO REVIEWS)
Modified:
9 years, 7 months ago
Reviewers:
Jói
CC:
chromium-reviews, ceee-reviews_chromium.org
Visibility:
Public.

Description

DCHECK to detect invalid BrokerRpcClient usage. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68291

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -1 line) Patch
M ceee/ie/broker/broker_rpc_client.cc View 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
Vitaly Buka (NO REVIEWS)
10 years ago (2010-12-04 04:16:16 UTC) #1
Jói
10 years ago (2010-12-04 13:56:30 UTC) #2
LGTM

On Fri, Dec 3, 2010 at 11:16 PM,  <vitalybuka@chromium.org> wrote:
> Reviewers: Jói,
>
> Description:
> DCHECK to detect invalid BrokerRpcClient usage.
>
> BUG=none
> TEST=none
>
>
> Please review this at http://codereview.chromium.org/5606005/
>
> SVN Base: svn://svn.chromium.org/chrome/trunk/src/
>
> Affected files:
>  M     ceee/ie/broker/broker_rpc_client.cc
>
>
> Index: ceee/ie/broker/broker_rpc_client.cc
> ===================================================================
> --- ceee/ie/broker/broker_rpc_client.cc (revision 68235)
> +++ ceee/ie/broker/broker_rpc_client.cc (working copy)
> @@ -166,8 +166,10 @@
>   if (!rpc_function) {
>     RpcDcheck("rpc_function is NULL");
>   }
> -  if (!is_connected())
> +  if (!is_connected()) {
> +    RpcDcheck("BrokerRpcClient is not connected");
>     return RPC_E_FAULT;
> +  }
>   RpcTryExcept {
>     DispatchToFunction(rpc_function, params);
>     return S_OK;
>
>
>

Powered by Google App Engine
This is Rietveld 408576698