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

Issue 982883003: Use fixed socket name instead of SecureSocketWithKey (Closed)

Created:
5 years, 9 months ago by Vitaly Buka (NO REVIEWS)
Modified:
5 years, 9 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use fixed socket name instead of SecureSocketWithKey Root-case of the issue is that GTMCopyLaunchdExports does not work on 10.10, so we can't resolve socket name generated for SecureSocketWithKey. Socket provided by SecureSocketWithKey was used for: 1. Communicate with service from browser. This solved by using predefined socket name known to browser and service. Socket just needs to be unique for user_data_dir. Similar approach is used on Linux. 2. Start temporarily .plist file during service registration. No we can start just using RunAtLoad. BUG=428369, 466644 Committed: https://crrev.com/e4502e84ca012ce83ac4aa43583f4f7998e5f3e1 Cr-Commit-Position: refs/heads/master@{#320735}

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1

Patch Set 5 : #

Patch Set 6 : formating #

Patch Set 7 : ng builds don't like @YES #

Patch Set 8 : tests update #

Total comments: 1

Patch Set 9 : Thu Mar 12 09:11:34 PDT 2015 #

Patch Set 10 : Thu Mar 12 09:53:28 PDT 2015 #

Patch Set 11 : histograms #

Total comments: 2

Patch Set 12 : fixed histogram #

Total comments: 7

Patch Set 13 : fixed Lei's comments #

Total comments: 6

Patch Set 14 : Fri Mar 13 11:56:19 PDT 2015 #

Total comments: 2

Patch Set 15 : Mon Mar 16 00:05:28 PDT 2015 #

Patch Set 16 : Mon Mar 16 00:37:12 PDT 2015 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+97 lines, -125 lines) Patch
M chrome/browser/printing/cloud_print/test/cloud_print_proxy_process_browsertest.cc View 1 2 3 4 5 6 7 9 10 4 chunks +18 lines, -17 lines 0 comments Download
M chrome/browser/service_process/service_process_control_mac.mm View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/mac/launchd.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/common/mac/launchd.mm View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/common/mac/mock_launchd.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/mac/mock_launchd.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -29 lines 0 comments Download
M chrome/common/service_process_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -8 lines 0 comments Download
M chrome/common/service_process_util.cc View 2 chunks +16 lines, -15 lines 0 comments Download
M chrome/common/service_process_util_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +51 lines, -48 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (6 generated)
Vitaly Buka (NO REVIEWS)
PTAL
5 years, 9 months ago (2015-03-05 19:41:01 UTC) #2
Jacob Marble
lgtm
5 years, 9 months ago (2015-03-05 20:30:49 UTC) #3
Vitaly Buka (NO REVIEWS)
5 years, 9 months ago (2015-03-05 22:28:32 UTC) #5
Robert Sesek
I'm not sure this is quite right. While the GTMCopyExports does not work, because it ...
5 years, 9 months ago (2015-03-05 22:34:02 UTC) #6
Vitaly Buka (NO REVIEWS)
On 2015/03/05 22:34:02, Robert Sesek wrote: > I'm not sure this is quite right. While ...
5 years, 9 months ago (2015-03-05 22:55:06 UTC) #7
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/982883003/diff/20001/chrome/browser/service_process/service_process_control_mac.mm File chrome/browser/service_process/service_process_control_mac.mm (right): https://codereview.chromium.org/982883003/diff/20001/chrome/browser/service_process/service_process_control_mac.mm#newcode9 chrome/browser/service_process/service_process_control_mac.mm:9: #include "base/mac/foundation_util.h" // operator<< for CFErrorRef On 2015/03/05 22:34:02, ...
5 years, 9 months ago (2015-03-05 23:22:13 UTC) #8
Vitaly Buka (NO REVIEWS)
Actually I found on-demand that this cl breaks. If service terminated browser may trigger start ...
5 years, 9 months ago (2015-03-05 23:43:19 UTC) #9
Robert Sesek
On 2015/03/05 23:43:19, Vitaly Buka wrote: > Actually I found on-demand that this cl breaks. ...
5 years, 9 months ago (2015-03-05 23:44:53 UTC) #10
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/982883003/diff/60001/chrome/common/service_process_util_mac.mm File chrome/common/service_process_util_mac.mm (right): https://codereview.chromium.org/982883003/diff/60001/chrome/common/service_process_util_mac.mm#newcode185 chrome/common/service_process_util_mac.mm:185: if (!GetServiceProcessData(&version, &pid) || pid == -1) { this ...
5 years, 9 months ago (2015-03-06 01:51:09 UTC) #11
Vitaly Buka (NO REVIEWS)
On 2015/03/06 01:51:09, Vitaly Buka wrote: > https://codereview.chromium.org/982883003/diff/60001/chrome/common/service_process_util_mac.mm > File chrome/common/service_process_util_mac.mm (right): > > https://codereview.chromium.org/982883003/diff/60001/chrome/common/service_process_util_mac.mm#newcode185 ...
5 years, 9 months ago (2015-03-11 18:54:42 UTC) #12
Robert Sesek
Sorry for the delay; review load has been exceptionally high this week. I'm still not ...
5 years, 9 months ago (2015-03-11 22:20:29 UTC) #13
Vitaly Buka (NO REVIEWS)
asvitkine or isherman for metrics thestig for chrome/
5 years, 9 months ago (2015-03-12 16:14:51 UTC) #15
Vitaly Buka (NO REVIEWS)
> I'd suggest using an UMA histogram to track how often this happens. done
5 years, 9 months ago (2015-03-12 16:15:15 UTC) #16
Alexei Svitkine (slow)
https://codereview.chromium.org/982883003/diff/200001/chrome/common/service_process_util_mac.mm File chrome/common/service_process_util_mac.mm (right): https://codereview.chromium.org/982883003/diff/200001/chrome/common/service_process_util_mac.mm#newcode95 chrome/common/service_process_util_mac.mm:95: socket_name.value().size(), 75, 124, 50); Wait, does this even compile? ...
5 years, 9 months ago (2015-03-12 17:35:03 UTC) #17
Lei Zhang
lgtm with some nits https://codereview.chromium.org/982883003/diff/240001/chrome/browser/service_process/service_process_control_mac.mm File chrome/browser/service_process/service_process_control_mac.mm (right): https://codereview.chromium.org/982883003/diff/240001/chrome/browser/service_process/service_process_control_mac.mm#newcode9 chrome/browser/service_process/service_process_control_mac.mm:9: #include "base/mac/foundation_util.h" not needed? https://codereview.chromium.org/982883003/diff/240001/chrome/common/service_process_util.h ...
5 years, 9 months ago (2015-03-12 19:23:49 UTC) #19
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/982883003/diff/200001/chrome/common/service_process_util_mac.mm File chrome/common/service_process_util_mac.mm (right): https://codereview.chromium.org/982883003/diff/200001/chrome/common/service_process_util_mac.mm#newcode95 chrome/common/service_process_util_mac.mm:95: socket_name.value().size(), 75, 124, 50); On 2015/03/12 17:35:03, Alexei Svitkine ...
5 years, 9 months ago (2015-03-12 19:44:14 UTC) #20
Nico
https://codereview.chromium.org/982883003/diff/240001/chrome/browser/service_process/service_process_control_mac.mm File chrome/browser/service_process/service_process_control_mac.mm (right): https://codereview.chromium.org/982883003/diff/240001/chrome/browser/service_process/service_process_control_mac.mm#newcode9 chrome/browser/service_process/service_process_control_mac.mm:9: #include "base/mac/foundation_util.h" On 2015/03/12 19:44:13, Vitaly Buka wrote: > ...
5 years, 9 months ago (2015-03-12 19:48:45 UTC) #21
Alexei Svitkine (slow)
https://codereview.chromium.org/982883003/diff/260001/chrome/common/service_process_util_mac.mm File chrome/common/service_process_util_mac.mm (right): https://codereview.chromium.org/982883003/diff/260001/chrome/common/service_process_util_mac.mm#newcode94 chrome/common/service_process_util_mac.mm:94: LOCAL_HISTOGRAM_CUSTOM_COUNTS("CloudPrint.ServiceProcessSocketLength", Just double checking - you don't want the ...
5 years, 9 months ago (2015-03-13 13:04:00 UTC) #22
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/982883003/diff/260001/chrome/common/service_process_util_mac.mm File chrome/common/service_process_util_mac.mm (right): https://codereview.chromium.org/982883003/diff/260001/chrome/common/service_process_util_mac.mm#newcode94 chrome/common/service_process_util_mac.mm:94: LOCAL_HISTOGRAM_CUSTOM_COUNTS("CloudPrint.ServiceProcessSocketLength", Ugh, I totally screwed up copy-pasting macros here. ...
5 years, 9 months ago (2015-03-13 19:02:30 UTC) #23
Alexei Svitkine (slow)
https://codereview.chromium.org/982883003/diff/260001/chrome/common/service_process_util_mac.mm File chrome/common/service_process_util_mac.mm (right): https://codereview.chromium.org/982883003/diff/260001/chrome/common/service_process_util_mac.mm#newcode95 chrome/common/service_process_util_mac.mm:95: socket_name.value().size(), 75, 124, 50); On 2015/03/13 19:02:30, Vitaly Buka ...
5 years, 9 months ago (2015-03-14 23:23:06 UTC) #24
Vitaly Buka (NO REVIEWS)
On 2015/03/14 23:23:06, Alexei Svitkine (slow) wrote: > https://codereview.chromium.org/982883003/diff/260001/chrome/common/service_process_util_mac.mm > File chrome/common/service_process_util_mac.mm (right): > > ...
5 years, 9 months ago (2015-03-16 07:06:04 UTC) #25
Vitaly Buka (NO REVIEWS)
https://codereview.chromium.org/982883003/diff/280001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/982883003/diff/280001/tools/metrics/histograms/histograms.xml#newcode3041 tools/metrics/histograms/histograms.xml:3041: + Temporarily histograme with size of IPC sockets in ...
5 years, 9 months ago (2015-03-16 07:07:16 UTC) #26
Alexei Svitkine (slow)
lgtm
5 years, 9 months ago (2015-03-16 15:33:51 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/982883003/320001
5 years, 9 months ago (2015-03-16 16:22:55 UTC) #30
commit-bot: I haz the power
Committed patchset #16 (id:320001)
5 years, 9 months ago (2015-03-16 16:26:34 UTC) #31
commit-bot: I haz the power
5 years, 9 months ago (2015-03-16 16:27:18 UTC) #32
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/e4502e84ca012ce83ac4aa43583f4f7998e5f3e1
Cr-Commit-Position: refs/heads/master@{#320735}

Powered by Google App Engine
This is Rietveld 408576698