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

Issue 3303001: Basic user access check for chromoting host. (Closed)

Created:
10 years, 3 months ago by Sergey Ulanov
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Alpha Left Google, Sergey Ulanov, dmac, awong, garykac, Paweł Hajdan Jr.
Visibility:
Public.

Description

Basic user access check for chromoting host. BUG=53984 TEST=unittests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58301

Patch Set 1 : - #

Total comments: 25

Patch Set 2 : addressed review comments #

Patch Set 3 : - #

Total comments: 10

Patch Set 4 : - #

Patch Set 5 : - #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -13 lines) Patch
A remoting/host/access_verifier.h View 1 2 3 1 chunk +36 lines, -0 lines 0 comments Download
A remoting/host/access_verifier.cc View 1 2 3 4 1 chunk +39 lines, -0 lines 0 comments Download
A remoting/host/access_verifier_unittest.cc View 1 2 3 1 chunk +60 lines, -0 lines 0 comments Download
M remoting/host/chromoting_host.h View 2 chunks +3 lines, -0 lines 0 comments Download
M remoting/host/chromoting_host.cc View 1 2 3 2 chunks +8 lines, -1 line 0 comments Download
M remoting/host/heartbeat_sender.h View 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/host/heartbeat_sender_unittest.cc View 3 chunks +4 lines, -12 lines 0 comments Download
M remoting/host/host_config.h View 1 chunk +2 lines, -0 lines 0 comments Download
A remoting/host/in_memory_host_config.h View 1 chunk +42 lines, -0 lines 0 comments Download
A remoting/host/in_memory_host_config.cc View 1 chunk +36 lines, -0 lines 0 comments Download
M remoting/remoting.gyp View 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Sergey Ulanov
10 years, 3 months ago (2010-09-01 01:34:16 UTC) #1
awong
Yay!!!! Comments inline. http://codereview.chromium.org/3303001/diff/2001/3001 File remoting/host/access_verifier.cc (right): http://codereview.chromium.org/3303001/diff/2001/3001#newcode15 remoting/host/access_verifier.cc:15: if (!config->GetString(kXmppLoginConfigPath, &host_jid_)) { Should we ...
10 years, 3 months ago (2010-09-01 01:45:39 UTC) #2
Sergey Ulanov
http://codereview.chromium.org/3303001/diff/2001/3001 File remoting/host/access_verifier.cc (right): http://codereview.chromium.org/3303001/diff/2001/3001#newcode15 remoting/host/access_verifier.cc:15: if (!config->GetString(kXmppLoginConfigPath, &host_jid_)) { On 2010/09/01 01:45:39, awong wrote: ...
10 years, 3 months ago (2010-09-01 04:57:47 UTC) #3
awong
http://codereview.chromium.org/3303001/diff/2001/3008 File remoting/host/in_memory_host_config.cc (right): http://codereview.chromium.org/3303001/diff/2001/3008#newcode22 remoting/host/in_memory_host_config.cc:22: void InMemoryHostConfig::Update(Task* task) { rename task -> done http://codereview.chromium.org/3303001/diff/2001/3008#newcode24 ...
10 years, 3 months ago (2010-09-01 15:43:52 UTC) #4
Sergey Ulanov
http://codereview.chromium.org/3303001/diff/2001/3008 File remoting/host/in_memory_host_config.cc (right): http://codereview.chromium.org/3303001/diff/2001/3008#newcode22 remoting/host/in_memory_host_config.cc:22: void InMemoryHostConfig::Update(Task* task) { On 2010/09/01 15:43:52, awong wrote: ...
10 years, 3 months ago (2010-09-01 18:00:09 UTC) #5
awong
LGTM FYI, the MutableHostConfig interface still seems pretty odd to me... http://codereview.chromium.org/3303001/diff/11001/12001 File remoting/host/access_verifier.cc (right): ...
10 years, 3 months ago (2010-09-01 18:13:18 UTC) #6
Sergey Ulanov
10 years, 3 months ago (2010-09-01 18:20:48 UTC) #7
http://codereview.chromium.org/3303001/diff/11001/12001
File remoting/host/access_verifier.cc (right):

http://codereview.chromium.org/3303001/diff/11001/12001#newcode33
remoting/host/access_verifier.cc:33: DCHECK(initialized_);
On 2010/09/01 18:13:18, awong wrote:
> On 2010/09/01 18:00:09, sergeyu wrote:
> > On 2010/09/01 15:43:53, awong wrote:
> > > In this case, I think a full-on if statement is better.  Since the normal
> code
> > > path does not assert that initialization has to succeed, we should be
> > > conservative and fail if the verification if the object was not correctly
> > > initialized.
> > If the object wasn't initialized then Verify should never be called and this
> > DCHECK checks this.
> 
> I agree, that it shouldn't be called, but it'd rather have a check that isn't
> disabled in release if we code in a bug.  Change to CHECK?

Done.

Powered by Google App Engine
This is Rietveld 408576698