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

Issue 7796026: Pass SessionConfig by reference instead of pointer. (Closed)

Created:
9 years, 3 months ago by Sergey Ulanov
Modified:
9 years, 3 months ago
Reviewers:
Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, Paweł Hajdan Jr., dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Pass SessionConfig by reference instead of pointer. BUG=88600 TEST=Unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=100587

Patch Set 1 #

Total comments: 7

Patch Set 2 : - #

Patch Set 3 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+95 lines, -116 lines) Patch
M remoting/client/chromoting_client.cc View 1 chunk +1 line, -3 lines 0 comments Download
M remoting/client/rectangle_update_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/client/rectangle_update_decoder.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M remoting/host/chromoting_host.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/chromoting_host.cc View 1 2 chunks +5 lines, -6 lines 0 comments Download
M remoting/host/chromoting_host_unittest.cc View 5 chunks +10 lines, -11 lines 0 comments Download
M remoting/protocol/connection_to_host.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/connection_to_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/fake_session.h View 2 chunks +3 lines, -3 lines 0 comments Download
M remoting/protocol/fake_session.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M remoting/protocol/jingle_session.h View 2 chunks +4 lines, -3 lines 0 comments Download
M remoting/protocol/jingle_session.cc View 1 2 3 chunks +12 lines, -12 lines 0 comments Download
M remoting/protocol/jingle_session_manager.cc View 1 chunk +0 lines, -1 line 0 comments Download
M remoting/protocol/jingle_session_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/protocol_mock_objects.h View 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/protocol/protocol_test_client.cc View 1 1 chunk +1 line, -1 line 0 comments Download
remoting/protocol/session.h View 1 1 chunk +5 lines, -6 lines 0 comments Download
M remoting/protocol/session_config.h View 3 chunks +8 lines, -12 lines 0 comments Download
M remoting/protocol/session_config.cc View 1 6 chunks +24 lines, -35 lines 0 comments Download
M remoting/protocol/video_reader.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/video_reader.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M remoting/protocol/video_writer.h View 1 chunk +1 line, -1 line 0 comments Download
M remoting/protocol/video_writer.cc View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Sergey Ulanov
9 years, 3 months ago (2011-09-10 00:36:12 UTC) #1
Wez
LGTM http://codereview.chromium.org/7796026/diff/1/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (right): http://codereview.chromium.org/7796026/diff/1/remoting/host/chromoting_host.cc#newcode457 remoting/host/chromoting_host.cc:457: DCHECK_EQ(context_->main_message_loop(), MessageLoop::current()); We don't need this, surely, since ...
9 years, 3 months ago (2011-09-10 01:04:29 UTC) #2
Sergey Ulanov
http://codereview.chromium.org/7796026/diff/1/remoting/host/chromoting_host.cc File remoting/host/chromoting_host.cc (right): http://codereview.chromium.org/7796026/diff/1/remoting/host/chromoting_host.cc#newcode457 remoting/host/chromoting_host.cc:457: DCHECK_EQ(context_->main_message_loop(), MessageLoop::current()); On 2011/09/10 01:04:29, Wez wrote: > We ...
9 years, 3 months ago (2011-09-10 06:45:58 UTC) #3
commit-bot: I haz the power
Can't process patch for file remoting/protocol/session.h. File's status is None, patchset upload is incomplete.
9 years, 3 months ago (2011-09-10 16:44:21 UTC) #4
Wez
http://codereview.chromium.org/7796026/diff/1/remoting/protocol/session_config.cc File remoting/protocol/session_config.cc (right): http://codereview.chromium.org/7796026/diff/1/remoting/protocol/session_config.cc#newcode191 remoting/protocol/session_config.cc:191: *result->mutable_initial_resolution() = (config.initial_resolution()); On 2011/09/10 06:45:58, sergeyu wrote: > ...
9 years, 3 months ago (2011-09-11 01:17:40 UTC) #5
Sergey Ulanov
On Sep 10, 2011 6:17 PM, <wez@chromium.org> wrote: > > > http://codereview.chromium.org/7796026/diff/1/remoting/protocol/session_config.cc > File remoting/protocol/session_config.cc ...
9 years, 3 months ago (2011-09-11 01:42:42 UTC) #6
Wez
9 years, 3 months ago (2011-09-11 01:48:42 UTC) #7
On 2011/09/11 01:42:42, sergeyu wrote:
> The star is applied to the result of the function call, and it is a pointer.
> Perhaps we need parentheses to make this more readable.

You're right, I was reading it wrongly.  Parentheses would definitely make that
clearer!

Powered by Google App Engine
This is Rietveld 408576698