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

Issue 23444057: Reduce chrome cras dbus call logs during device rebooting. (Closed)

Created:
7 years, 3 months ago by jennyz
Modified:
7 years, 3 months ago
Reviewers:
rkc, Daniel Erat
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, oshima+watch_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Reduce chrome cras dbus call logs during device rebooting. cras server won't start unitl after EmitLoginPromptVisible. Start cras log after it, so that we don't log the dbus failure due to cras call is made before it is started . Also a few other changes that should remove all other excess log seen during rebooting. BUG=288177

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fix comments. #

Total comments: 4

Patch Set 3 : Enable CrasAudioHandler logging if chrome crashes and reboots. #

Total comments: 2

Patch Set 4 : Rename EnableLog. #

Patch Set 5 : Rename EnableLog #

Unified diffs Side-by-side diffs Delta from patch set Stats (+131 lines, -24 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/audio/audio_service_chromeos.cc View 3 chunks +13 lines, -1 line 0 comments Download
M chromeos/audio/cras_audio_handler.h View 1 2 3 5 chunks +18 lines, -3 lines 0 comments Download
M chromeos/audio/cras_audio_handler.cc View 1 2 3 12 chunks +52 lines, -10 lines 0 comments Download
M chromeos/dbus/cras_audio_client.h View 1 chunk +8 lines, -1 line 0 comments Download
M chromeos/dbus/cras_audio_client.cc View 1 3 chunks +28 lines, -7 lines 0 comments Download
M chromeos/dbus/cras_audio_client_stub_impl.h View 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/dbus/cras_audio_client_stub_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
chromeos/dbus/session_manager_client.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chromeos/dbus/session_manager_client.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
jennyz
7 years, 3 months ago (2013-09-12 20:28:55 UTC) #1
Daniel Erat
https://codereview.chromium.org/23444057/diff/1/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/23444057/diff/1/chromeos/audio/cras_audio_handler.cc#newcode351 chromeos/audio/cras_audio_handler.cc:351: // During device reboot, cras may change active input ...
7 years, 3 months ago (2013-09-12 20:39:30 UTC) #2
jennyz
https://codereview.chromium.org/23444057/diff/1/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/23444057/diff/1/chromeos/audio/cras_audio_handler.cc#newcode351 chromeos/audio/cras_audio_handler.cc:351: // During device reboot, cras may change active input ...
7 years, 3 months ago (2013-09-12 21:00:04 UTC) #3
Daniel Erat
https://codereview.chromium.org/23444057/diff/7001/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/23444057/diff/7001/chromeos/audio/cras_audio_handler.cc#newcode379 chromeos/audio/cras_audio_handler.cc:379: enable_log_ = true; what happens if chrome crashes and ...
7 years, 3 months ago (2013-09-12 21:10:05 UTC) #4
jennyz
https://codereview.chromium.org/23444057/diff/7001/chromeos/audio/cras_audio_handler.cc File chromeos/audio/cras_audio_handler.cc (right): https://codereview.chromium.org/23444057/diff/7001/chromeos/audio/cras_audio_handler.cc#newcode379 chromeos/audio/cras_audio_handler.cc:379: enable_log_ = true; On 2013/09/12 21:10:05, Daniel Erat wrote: ...
7 years, 3 months ago (2013-09-12 22:34:44 UTC) #5
Daniel Erat
lgtm https://codereview.chromium.org/23444057/diff/1010/chromeos/audio/cras_audio_handler.h File chromeos/audio/cras_audio_handler.h (right): https://codereview.chromium.org/23444057/diff/1010/chromeos/audio/cras_audio_handler.h#newcode264 chromeos/audio/cras_audio_handler.h:264: bool enable_log_; nit: sorry for not mentioning this ...
7 years, 3 months ago (2013-09-12 22:47:03 UTC) #6
jennyz
7 years, 3 months ago (2013-09-12 23:48:24 UTC) #7
After I rebased and tried to upload the new patch for renaming EnableLog() to
LogErrors(), somehow, git just think the base files are missing, and won't
upload the patch, therefore, I updated a new cl. The only difference between the
new cl and this one is to rename EnableLog to LogErrors as you suggested. Here
is the new cl, PTAL.
https://codereview.chromium.org/23460038/

Thanks,

https://codereview.chromium.org/23444057/diff/1010/chromeos/audio/cras_audio_...
File chromeos/audio/cras_audio_handler.h (right):

https://codereview.chromium.org/23444057/diff/1010/chromeos/audio/cras_audio_...
chromeos/audio/cras_audio_handler.h:264: bool enable_log_;
On 2013/09/12 22:47:03, Daniel Erat wrote:
> nit: sorry for not mentioning this earlier, but do you mind changing this to
> log_errors_ (and also renaming the method to LogErrors())? i think it makes it
a
> bit more clear what they do.

Done.

Powered by Google App Engine
This is Rietveld 408576698