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

Issue 8380011: chromeos: Silence log spam from x11_util.cc. (Closed)

Created:
9 years, 2 months ago by satorux1
Modified:
9 years, 2 months ago
Reviewers:
stevenjb, Daniel Erat
CC:
chromium-reviews
Visibility:
Public.

Description

chromeos: Silence log spam from x11_util.cc. The log spam happens when running browser_tests on Chrome OS, or running Chrome for Chrome OS on Linux desktop. The source of the spam was XGrabKey in chrome/browser/chromeos/system_key_event_listener.cc. We should use this class only when Chrome is running on Chrome OS in non-test mode. TEST=the log spam is gone from linux desktop, and function keys work on Chrome OS as before. BUG=chromium-os:21331 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106994

Patch Set 1 #

Patch Set 2 : update #

Total comments: 2

Patch Set 3 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -2 lines) Patch
M chrome/browser/chrome_browser_main.cc View 1 2 3 chunks +9 lines, -2 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
satorux1
9 years, 2 months ago (2011-10-24 19:56:34 UTC) #1
Daniel Erat
lgtm
9 years, 2 months ago (2011-10-24 19:58:23 UTC) #2
stevenjb
Thanks for doing this! lgtm with nit http://codereview.chromium.org/8380011/diff/1001/chrome/browser/chrome_browser_main.cc File chrome/browser/chrome_browser_main.cc (right): http://codereview.chromium.org/8380011/diff/1001/chrome/browser/chrome_browser_main.cc#newcode2049 chrome/browser/chrome_browser_main.cc:2049: !parameters().ui_task) { ...
9 years, 2 months ago (2011-10-24 20:17:36 UTC) #3
satorux1
9 years, 2 months ago (2011-10-24 20:27:28 UTC) #4
http://codereview.chromium.org/8380011/diff/1001/chrome/browser/chrome_browse...
File chrome/browser/chrome_browser_main.cc (right):

http://codereview.chromium.org/8380011/diff/1001/chrome/browser/chrome_browse...
chrome/browser/chrome_browser_main.cc:2049: !parameters().ui_task) {
On 2011/10/24 20:17:36, Steven Bennetts wrote:
> nit: SystemKeyEventListener::Shutdown() is always safe to call; I feel that
> mirrored logic like this is risky to maintain and would rather always call
> Shutdown() (e.g. if we change when we call Initialize() and forgot to change
> this logic we might introduce a leak, bug, or crash on shutdown)

Agreed. Removed the conditional and added some comment about it.

Powered by Google App Engine
This is Rietveld 408576698