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

Issue 22903025: Send Chrome's process id to the app shim. (Closed)

Created:
7 years, 4 months ago by jackhou1
Modified:
7 years, 4 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Send Chrome's process id to the app shim. This saves the app shim from having to look it up using Chrome's bundle id. This also allows the shim to connect to Chrome processes started by tests which are not associated with the bundle. BUG=168080 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219519

Patch Set 1 #

Total comments: 4

Patch Set 2 : Re-upload and remove logs. #

Patch Set 3 : Fix order in app_mode_common #

Total comments: 4

Patch Set 4 : Address comments #

Total comments: 4

Patch Set 5 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+30 lines, -12 lines) Patch
M apps/app_shim/chrome_main_app_mode_mac.mm View 1 2 3 3 chunks +20 lines, -7 lines 0 comments Download
M chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M chrome/common/mac/app_mode_common.h View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/common/mac/app_mode_common.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
jackhou1
7 years, 4 months ago (2013-08-22 05:19:31 UTC) #1
tapted
Some of the files didn't upload.. https://codereview.chromium.org/22903025/diff/1/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/22903025/diff/1/chrome/browser/web_applications/web_app_mac.mm#newcode219 chrome/browser/web_applications/web_app_mac.mm:219: LOG(INFO) << "pid ...
7 years, 4 months ago (2013-08-22 05:21:49 UTC) #2
jackhou1
https://codereview.chromium.org/22903025/diff/1/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/22903025/diff/1/chrome/browser/web_applications/web_app_mac.mm#newcode219 chrome/browser/web_applications/web_app_mac.mm:219: LOG(INFO) << "pid " << base::Process::Current().pid(); On 2013/08/22 05:21:49, ...
7 years, 4 months ago (2013-08-22 05:33:32 UTC) #3
tapted
https://codereview.chromium.org/22903025/diff/9001/apps/app_shim/chrome_main_app_mode_mac.mm File apps/app_shim/chrome_main_app_mode_mac.mm (right): https://codereview.chromium.org/22903025/diff/9001/apps/app_shim/chrome_main_app_mode_mac.mm#newcode441 apps/app_shim/chrome_main_app_mode_mac.mm:441: pid = -1; This implies it will try to ...
7 years, 4 months ago (2013-08-22 06:17:12 UTC) #4
jackhou1
https://codereview.chromium.org/22903025/diff/9001/apps/app_shim/chrome_main_app_mode_mac.mm File apps/app_shim/chrome_main_app_mode_mac.mm (right): https://codereview.chromium.org/22903025/diff/9001/apps/app_shim/chrome_main_app_mode_mac.mm#newcode441 apps/app_shim/chrome_main_app_mode_mac.mm:441: pid = -1; On 2013/08/22 06:17:12, tapted wrote: > ...
7 years, 4 months ago (2013-08-22 06:52:53 UTC) #5
tapted
lgtm, but we should get a sanity check from security about passing the PID around ...
7 years, 4 months ago (2013-08-22 07:25:18 UTC) #6
jackhou1
benwells, please review for OWNERS in chrome/browser/web_applications/ rsesek, please review for OWNERS in chrome/common/mac/ palmer, ...
7 years, 4 months ago (2013-08-23 05:12:24 UTC) #7
benwells
Web app lgtm https://codereview.chromium.org/22903025/diff/17001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/22903025/diff/17001/chrome/browser/web_applications/web_app_mac.mm#newcode23 chrome/browser/web_applications/web_app_mac.mm:23: #include "base/strings/string_number_conversions.h" Nit: move above string_util
7 years, 4 months ago (2013-08-23 13:04:51 UTC) #8
palmer
lgtm
7 years, 4 months ago (2013-08-23 18:37:16 UTC) #9
Robert Sesek
LGTM w/ a small change https://codereview.chromium.org/22903025/diff/17001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/22903025/diff/17001/chrome/browser/web_applications/web_app_mac.mm#newcode217 chrome/browser/web_applications/web_app_mac.mm:217: base::IntToString(base::Process::Current().pid())); Use base::GetCurrentProcessId() in ...
7 years, 4 months ago (2013-08-23 18:47:32 UTC) #10
jackhou1
https://codereview.chromium.org/22903025/diff/17001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/22903025/diff/17001/chrome/browser/web_applications/web_app_mac.mm#newcode23 chrome/browser/web_applications/web_app_mac.mm:23: #include "base/strings/string_number_conversions.h" On 2013/08/23 13:04:52, benwells wrote: > Nit: ...
7 years, 4 months ago (2013-08-26 04:29:44 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jackhou@chromium.org/22903025/27001
7 years, 4 months ago (2013-08-26 05:48:37 UTC) #12
commit-bot: I haz the power
7 years, 4 months ago (2013-08-26 09:23:49 UTC) #13
Message was sent while issue was closed.
Change committed as 219519

Powered by Google App Engine
This is Rietveld 408576698