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

Issue 3084024: Start chromoting host in the service process though a method call (Closed)

Created:
10 years, 4 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, Sergey Ulanov, dmac, awong, garykac, Paweł Hajdan Jr.
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Start chromoting host in the service process though a method call This change exposes method calls to configure the chromoting host and allow it to be started from a method. This will allow us to use IPC message to start the chromoting host. TEST=unit_tests --gtest_filter=ServiceProcess* BUG=50243, 50244 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55507

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -85 lines) Patch
M chrome/service/service_main.cc View 3 chunks +1 line, -57 lines 0 comments Download
M chrome/service/service_process.h View 4 chunks +44 lines, -6 lines 0 comments Download
M chrome/service/service_process.cc View 7 chunks +112 lines, -13 lines 3 comments Download
M chrome/service/service_process_unittest.cc View 1 chunk +67 lines, -1 line 0 comments Download
M remoting/host/heartbeat_sender.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M remoting/jingle_glue/jingle_client.cc View 2 chunks +11 lines, -4 lines 0 comments Download
M remoting/remoting.gyp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Alpha Left Google
10 years, 4 months ago (2010-08-09 19:07:37 UTC) #1
Alpha Left Google
I won't check this in as is. As ServiceProcessTest.RunChromotingUntilShutdown is actually making connections and is ...
10 years, 4 months ago (2010-08-09 19:09:26 UTC) #2
Sergey Ulanov
http://codereview.chromium.org/3084024/diff/1/3 File chrome/service/service_process.cc (right): http://codereview.chromium.org/3084024/diff/1/3#newcode185 chrome/service/service_process.cc:185: void ServiceProcess::SaveChromotingConfig(const std::string& login, I think this method belongs ...
10 years, 4 months ago (2010-08-09 22:29:16 UTC) #3
Alpha Left Google
http://codereview.chromium.org/3084024/diff/1/3 File chrome/service/service_process.cc (right): http://codereview.chromium.org/3084024/diff/1/3#newcode185 chrome/service/service_process.cc:185: void ServiceProcess::SaveChromotingConfig(const std::string& login, On 2010/08/09 22:29:16, sergeyu wrote: ...
10 years, 4 months ago (2010-08-09 22:34:19 UTC) #4
Sergey Ulanov
http://codereview.chromium.org/3084024/diff/1/3 File chrome/service/service_process.cc (right): http://codereview.chromium.org/3084024/diff/1/3#newcode185 chrome/service/service_process.cc:185: void ServiceProcess::SaveChromotingConfig(const std::string& login, On 2010/08/09 22:34:19, Alpha wrote: ...
10 years, 4 months ago (2010-08-09 23:10:17 UTC) #5
Alpha Left Google
On 2010/08/09 23:10:17, sergeyu wrote: > http://codereview.chromium.org/3084024/diff/1/3 > File chrome/service/service_process.cc (right): > > http://codereview.chromium.org/3084024/diff/1/3#newcode185 > ...
10 years, 4 months ago (2010-08-09 23:22:10 UTC) #6
Sergey Ulanov
10 years, 4 months ago (2010-08-09 23:50:48 UTC) #7
On Mon, Aug 9, 2010 at 4:22 PM, <hclam@chromium.org> wrote:

> On 2010/08/09 23:10:17, sergeyu wrote:
>
>> http://codereview.chromium.org/3084024/diff/1/3
>> File chrome/service/service_process.cc (right):
>>
>
>  http://codereview.chromium.org/3084024/diff/1/3#newcode185
>> chrome/service/service_process.cc:185: void
>> ServiceProcess::SaveChromotingConfig(const std::string& login,
>> On 2010/08/09 22:34:19, Alpha wrote:
>> > On 2010/08/09 22:29:16, sergeyu wrote:
>> > > I think this method belongs to tests, should be moved to
>> > > service_process_unittest.cc.
>> >
>> > This method is actually for setting the chromoting config from the
>> browser
>> > through IPC, it's just not hooked up in this patch.
>> I see. Then it should be separated into multiple methods: we don't need to
>> update all config parameters every time.
>> login and token may need to be updated without changing anything else,
>> host_id and private_key should be generated only once per machine (and
>>
> probably
>
>> it is better to do this in the host process),
>> host_name is not really necessary in the host config, we should probably
>>
> remove
>
>> it.
>> Beside that, in future we will need to add some other config settings, and
>>
> here
>
>> you have one function parameter for each config settings, so this method
>> will
>> become a monster with 100 parameters.
>> A possible solution is to use DictionaryValue (or something like
>> map<string,
>> string>) to pass list all options you need to be updated in the config.
>>
>
> The use case of this API is that we'll only call it once and assume it is
> valid
> all the time.
>
> I'd like to revise this after we have finalized how we start a service
> process.
>
Add TODO to refactor this method?
LGTM otherwise.


>
>

>
>
> http://codereview.chromium.org/3084024/show
>

Powered by Google App Engine
This is Rietveld 408576698