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

Issue 10666010: Don't pass the connector check policy flag along. (Closed)

Created:
8 years, 6 months ago by Scott Byer
Modified:
8 years, 5 months ago
CC:
chromium-reviews, rginda+watch_chromium.org
Visibility:
Public.

Description

Don't pass the connector check policy flag along. If a browser is running, and the service process is running the connector, the connector will occasionally start up a chromium process to check the connector enablement policy. The flag to do so would get passed to a running browser, if present, and there is a path through the policy check code that could cause the browser to quit. This patch prevents the policy check flag from being passed on; the started process will be very short lived and does a silent launch. BUG=134252 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=146149

Patch Set 1 : #

Total comments: 6

Patch Set 2 : Browsertest for try bots #

Patch Set 3 : Browser test, slightly cleaned up. #

Patch Set 4 : anon namespace #

Total comments: 6

Patch Set 5 : address comments #

Patch Set 6 : address comments (2nd try) #

Patch Set 7 : address comments (2nd try) #

Patch Set 8 : fix nit #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -4 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -4 lines 0 comments Download
A chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +77 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/chrome_result_codes.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
Scott Byer
This closes a very small timing window that could cause the browser to quit. The ...
8 years, 6 months ago (2012-06-22 23:28:28 UTC) #1
Paweł Hajdan Jr.
http://codereview.chromium.org/10666010/diff/7001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): http://codereview.chromium.org/10666010/diff/7001/chrome/browser/chrome_browser_main.cc#newcode1518 chrome/browser/chrome_browser_main.cc:1518: bool pass_command_line = This #ifdef-mixed assignment is ugly. Please ...
8 years, 6 months ago (2012-06-23 07:23:37 UTC) #2
Miranda Callahan
OWNER LGTM for profiles/*. On 2012/06/23 07:23:37, Paweł Hajdan Jr. wrote: > http://codereview.chromium.org/10666010/diff/7001/chrome/browser/chrome_browser_main.cc > File ...
8 years, 6 months ago (2012-06-23 15:04:50 UTC) #3
Albert Bodenhamer
I just realized I hadn't sent this. http://codereview.chromium.org/10666010/diff/7001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): http://codereview.chromium.org/10666010/diff/7001/chrome/browser/chrome_browser_main.cc#newcode1519 chrome/browser/chrome_browser_main.cc:1519: #if !defined(OS_MACOSX) ...
8 years, 5 months ago (2012-06-27 16:35:33 UTC) #4
Scott Byer
http://codereview.chromium.org/10666010/diff/7001/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc File chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc (right): http://codereview.chromium.org/10666010/diff/7001/chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc#newcode511 chrome/browser/printing/cloud_print/cloud_print_proxy_service_unittest.cc:511: TEST_F(CloudPrintProxyPolicyTest, CheckCommandLineCrossTalk) { On 2012/06/23 07:23:37, Paweł Hajdan Jr. ...
8 years, 5 months ago (2012-06-27 19:29:06 UTC) #5
Scott Byer
PTAL; I like the browser test route, though it did require adding a new exit ...
8 years, 5 months ago (2012-07-02 19:04:17 UTC) #6
Albert Bodenhamer
lgtm http://codereview.chromium.org/10666010/diff/25001/chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc File chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc (right): http://codereview.chromium.org/10666010/diff/25001/chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc#newcode49 chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc:49: TestTimeouts::action_timeout_ms()); Do we need action_timeout_ms or action_timeout here?
8 years, 5 months ago (2012-07-09 04:09:39 UTC) #7
Lei Zhang
http://codereview.chromium.org/10666010/diff/25001/chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc File chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc (right): http://codereview.chromium.org/10666010/diff/25001/chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc#newcode20 chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc:20: #if !defined(OS_MACOSX) Can we just exclude this file on ...
8 years, 5 months ago (2012-07-09 22:40:04 UTC) #8
Scott Byer
http://codereview.chromium.org/10666010/diff/25001/chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc File chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc (right): http://codereview.chromium.org/10666010/diff/25001/chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc#newcode20 chrome/browser/printing/cloud_print/test/cloud_print_policy_browsertest.cc:20: #if !defined(OS_MACOSX) On 2012/07/09 22:40:04, Lei Zhang wrote: > ...
8 years, 5 months ago (2012-07-10 16:23:11 UTC) #9
Lei Zhang
LGTM minor nit: isn't EXPECT_EQ written as EXPECT_EQ(expected, actual) ?
8 years, 5 months ago (2012-07-10 18:24:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottbyer@chromium.org/10666010/26004
8 years, 5 months ago (2012-07-10 18:34:09 UTC) #11
commit-bot: I haz the power
Try job failure for 10666010-26004 (retry) (retry) on linux_rel for step "interactive_ui_tests". It's a second ...
8 years, 5 months ago (2012-07-10 19:28:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottbyer@chromium.org/10666010/26004
8 years, 5 months ago (2012-07-10 19:32:05 UTC) #13
commit-bot: I haz the power
Try job failure for 10666010-26004 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-10 21:11:28 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottbyer@chromium.org/10666010/26004
8 years, 5 months ago (2012-07-10 21:13:14 UTC) #15
commit-bot: I haz the power
Try job failure for 10666010-26004 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-10 23:02:11 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scottbyer@chromium.org/10666010/28005
8 years, 5 months ago (2012-07-11 16:50:53 UTC) #17
commit-bot: I haz the power
8 years, 5 months ago (2012-07-11 18:20:44 UTC) #18
Change committed as 146149

Powered by Google App Engine
This is Rietveld 408576698