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

Issue 12529024: Fix feedback log collection. (Closed)

Created:
7 years, 9 months ago by rkc
Modified:
7 years, 9 months ago
Reviewers:
xiyuan, brettw, Dan Beam
CC:
chromium-reviews, MAD, nkostylev+watch_chromium.org, Ilya Sherman, jshin+watch_chromium.org, oshima+watch_chromium.org, erikwright+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, jar (doing other things), benwells
Visibility:
Public.

Description

Fix feedback log collection. Redesigned most of how we gather and send feedback data at the moment. This is to be able to implement using the system logs source to gather feedback logs and additionally to make future maintainence easier. Major changes in this CL, . Redesigned FeedbackData - Moved all of data collection into this object. The object manages timeline of data collection and when to send the feedback report on it's own. Converted it to a scoped_refptr to clean up the lifetime management. . Moved the compress of feedback reports out of the system log collection to feedback_util, where the report is actually created and sent. . Removed all dependency of the feedback page on the obsolete syslogs collector - once the network diagnostics UI also stops using this code, we can safely kill it. . Added the chrome_internal data source moving the sync and extension log info to their correct place. . Made system info reports 'prettier'. . Cleaned up code throughout feedback and system_logs. Main review requested: dbeam OWNER's reviews requested: xiyuan chrome/browser/chromeos/ dbeam chrome/ chrome/browser/ui/webui/ R=dbeam@chromium.org,xiyuan@chromium.org TBR=brettw@chromium.org BUG=138582 TEST=Test sending feedback reports with various combinations of data; with/without system info, a file attached, screenshot, etc. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189137

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : #

Total comments: 16

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+436 lines, -428 lines) Patch
M chrome/browser/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/system/syslogs_provider.cc View 1 2 3 4 5 2 chunks +0 lines, -6 lines 0 comments Download
A + chrome/browser/chromeos/system_logs/OWNERS View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/chromeos/system_logs/chrome_internal_log_source.h View 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/system_logs/chrome_internal_log_source.cc View 1 chunk +109 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system_logs/dbus_log_source.cc View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/system_logs/debug_daemon_log_source.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/system_logs/debug_daemon_log_source.cc View 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/system_logs/lsb_release_log_source.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/system_logs/network_event_log_source.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/system_logs/system_logs_fetcher.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system_logs/touch_log_source.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/feedback/feedback_data.h View 1 2 3 4 5 6 7 8 3 chunks +73 lines, -47 lines 0 comments Download
M chrome/browser/feedback/feedback_data.cc View 1 2 3 4 5 6 7 1 chunk +70 lines, -189 lines 0 comments Download
M chrome/browser/feedback/feedback_util.h View 1 2 3 4 5 3 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/feedback/feedback_util.cc View 1 2 3 4 10 chunks +120 lines, -88 lines 0 comments Download
M chrome/browser/ui/webui/feedback_ui.cc View 1 2 3 4 5 6 9 chunks +22 lines, -71 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
rkc
7 years, 9 months ago (2013-03-18 22:34:20 UTC) #1
rkc
+ben for FYI who is also working on feedback related code.
7 years, 9 months ago (2013-03-18 22:52:38 UTC) #2
jar (doing other things)
Unless there are multiple consumers of the compression code, we probably don't want to move ...
7 years, 9 months ago (2013-03-18 23:04:44 UTC) #3
xiyuan
https://codereview.chromium.org/12529024/diff/5001/chrome/browser/chromeos/system_logs/dbus_log_source.cc File chrome/browser/chromeos/system_logs/dbus_log_source.cc (left): https://codereview.chromium.org/12529024/diff/5001/chrome/browser/chromeos/system_logs/dbus_log_source.cc#oldcode13 chrome/browser/chromeos/system_logs/dbus_log_source.cc:13: namespace { Why removing this? Are the constants below ...
7 years, 9 months ago (2013-03-18 23:55:52 UTC) #4
rkc
Spoke with jar@ and decided that it's better to just copy the BZip compression code ...
7 years, 9 months ago (2013-03-19 00:09:02 UTC) #5
xiyuan
https://codereview.chromium.org/12529024/diff/5001/chrome/browser/chromeos/system_logs/dbus_log_source.cc File chrome/browser/chromeos/system_logs/dbus_log_source.cc (left): https://codereview.chromium.org/12529024/diff/5001/chrome/browser/chromeos/system_logs/dbus_log_source.cc#oldcode13 chrome/browser/chromeos/system_logs/dbus_log_source.cc:13: namespace { On 2013/03/19 00:09:02, Rahul Chaturvedi wrote: > ...
7 years, 9 months ago (2013-03-19 02:14:48 UTC) #6
rkc
Removing jhawkins and adding dbeam for reviews. Just spoke with James, he's about to leave ...
7 years, 9 months ago (2013-03-19 18:50:32 UTC) #7
rkc
https://codereview.chromium.org/12529024/diff/5001/chrome/browser/chromeos/system_logs/dbus_log_source.cc File chrome/browser/chromeos/system_logs/dbus_log_source.cc (left): https://codereview.chromium.org/12529024/diff/5001/chrome/browser/chromeos/system_logs/dbus_log_source.cc#oldcode13 chrome/browser/chromeos/system_logs/dbus_log_source.cc:13: namespace { On 2013/03/19 02:14:48, xiyuan wrote: > On ...
7 years, 9 months ago (2013-03-19 19:58:58 UTC) #8
Dan Beam
I don't have a great knowledge of this, but it seems fine from a WebUI ...
7 years, 9 months ago (2013-03-19 20:59:13 UTC) #9
rkc
https://codereview.chromium.org/12529024/diff/19004/chrome/browser/ui/webui/feedback_ui.cc File chrome/browser/ui/webui/feedback_ui.cc (right): https://codereview.chromium.org/12529024/diff/19004/chrome/browser/ui/webui/feedback_ui.cc#newcode357 chrome/browser/ui/webui/feedback_ui.cc:357: feedback_data_(NULL) { On 2013/03/19 20:59:13, Dan Beam wrote: > ...
7 years, 9 months ago (2013-03-19 21:03:42 UTC) #10
xiyuan
LGTM https://codereview.chromium.org/12529024/diff/19004/chrome/browser/feedback/feedback_data.cc File chrome/browser/feedback/feedback_data.cc (right): https://codereview.chromium.org/12529024/diff/19004/chrome/browser/feedback/feedback_data.cc#newcode24 chrome/browser/feedback/feedback_data.cc:24: feedback_page_data_complete_(false) { Should we initialize attached_filedata_(NULL) here? https://codereview.chromium.org/12529024/diff/19004/chrome/browser/feedback/feedback_data.cc#newcode29 ...
7 years, 9 months ago (2013-03-19 21:15:09 UTC) #11
rkc
https://codereview.chromium.org/12529024/diff/19004/chrome/browser/feedback/feedback_data.cc File chrome/browser/feedback/feedback_data.cc (right): https://codereview.chromium.org/12529024/diff/19004/chrome/browser/feedback/feedback_data.cc#newcode24 chrome/browser/feedback/feedback_data.cc:24: feedback_page_data_complete_(false) { On 2013/03/19 21:15:09, xiyuan wrote: > Should ...
7 years, 9 months ago (2013-03-19 21:20:46 UTC) #12
rkc
TBR'ing the owners review for chrome/browser/DEPS and chrome/chrome_browser_chromeos.gypi
7 years, 9 months ago (2013-03-19 22:18:40 UTC) #13
brettw
LGTM for DEPS. In the future, please do not TBR DEPS changes (simple .gypi additions ...
7 years, 9 months ago (2013-03-19 22:34:07 UTC) #14
rkc
7 years, 9 months ago (2013-03-19 22:36:52 UTC) #15
Message was sent while issue was closed.
Committed patchset #9 manually as r189137 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698