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

Issue 329853010: Additional methods for chrome.logPrivate API (Closed)

Created:
6 years, 6 months ago by zel
Modified:
6 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, asvitkine+watch_chromium.org, eroman, mmenke, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Added additional methods for chrome.logPrivate: chrome.logPrivate.dumpLogs(function(fileEntry) {...}); - dumps all system logs as |fileEntry| (a .tgz file) chrome.logPrivate.startEventRecorder(type, function(){}); chrome.logPrivate.stopEventRecorder(type, function(){}); - start/stop additional log collection for dumps generated with chrome.logPrivate.dumpLogs(). TEST=LogPrivateApiTest.* BUG=385289 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285065

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : all works #

Total comments: 31

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : #

Patch Set 15 : rebase #

Patch Set 16 : capture tests added #

Patch Set 17 : #

Patch Set 18 : #

Total comments: 13

Patch Set 19 : #

Patch Set 20 : #

Total comments: 6

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Total comments: 4

Patch Set 24 : fixed test crash #

Patch Set 25 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1317 lines, -315 lines) Patch
A chrome/browser/chromeos/system_logs/debug_log_writer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/system_logs/debug_log_writer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +272 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/hid/hid_connection_resource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/extensions/api/log_private/log_private_api.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 7 chunks +93 lines, -21 lines 0 comments Download
M chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 6 chunks +347 lines, -35 lines 0 comments Download
A chrome/browser/extensions/api/log_private/log_private_apitest_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +103 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/net_internals/net_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 4 chunks +5 lines, -75 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +12 lines, -3 lines 0 comments Download
M chrome/common/extensions/api/log_private.idl View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +34 lines, -3 lines 0 comments Download
A chrome/common/extensions/docs/templates/public/apps/logPrivate.html View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/docs/templates/public/extensions/logPrivate.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/logging_chrome.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/logging_chrome.cc View 1 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/renderer/resources/extensions/file_entry_binding_util.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 1 chunk +119 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/file_system_custom_bindings.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +5 lines, -102 lines 0 comments Download
A chrome/renderer/resources/extensions/log_private_custom_bindings.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +2 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/log_private/dump_logs/manifest.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -4 lines 0 comments Download
A chrome/test/data/extensions/api_test/log_private/dump_logs/test.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +53 lines, -0 lines 0 comments Download
M chromeos/dbus/debug_daemon_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +5 lines, -3 lines 0 comments Download
M chromeos/dbus/debug_daemon_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +9 lines, -7 lines 0 comments Download
M chromeos/dbus/fake_debug_daemon_client.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -3 lines 0 comments Download
M chromeos/dbus/fake_debug_daemon_client.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -3 lines 0 comments Download
M content/renderer/media/mock_peer_connection_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 1 chunk +6 lines, -6 lines 0 comments Download
M extensions/browser/api/api_resource_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 15 chunks +140 lines, -43 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +3 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
zel
6 years, 6 months ago (2014-06-24 23:10:37 UTC) #1
Zachary Kuznia
https://codereview.chromium.org/329853010/diff/70001/chrome/browser/chromeos/system_logs/debug_log_writer.cc File chrome/browser/chromeos/system_logs/debug_log_writer.cc (right): https://codereview.chromium.org/329853010/diff/70001/chrome/browser/chromeos/system_logs/debug_log_writer.cc#newcode1 chrome/browser/chromeos/system_logs/debug_log_writer.cc:1: // Copyright (c) 2014 The Chromium Authors. All rights ...
6 years, 6 months ago (2014-06-25 00:05:54 UTC) #2
xiaowenx
https://codereview.chromium.org/329853010/diff/70001/chrome/browser/chromeos/system_logs/debug_log_writer.cc File chrome/browser/chromeos/system_logs/debug_log_writer.cc (right): https://codereview.chromium.org/329853010/diff/70001/chrome/browser/chromeos/system_logs/debug_log_writer.cc#newcode72 chrome/browser/chromeos/system_logs/debug_log_writer.cc:72: int flags = base::File::FLAG_CREATE_ALWAYS | base::File::FLAG_WRITE; Two spaces here ...
6 years, 6 months ago (2014-06-25 05:30:44 UTC) #3
Zachary Kuznia
https://codereview.chromium.org/329853010/diff/70001/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc File chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc (right): https://codereview.chromium.org/329853010/diff/70001/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc#newcode190 chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc:190: } On 2014/06/25 05:30:44, xiaowenx wrote: > Do you ...
6 years, 6 months ago (2014-06-25 18:39:03 UTC) #4
xiaowenx
Also need an html file like https://code.google.com/p/chromium/codesearch#chromium/src/chrome/common/extensions/docs/templates/public/extensions/storage.html (I think this causes the documentation to be ...
6 years, 6 months ago (2014-06-26 20:52:02 UTC) #5
zel
https://codereview.chromium.org/329853010/diff/70001/chrome/browser/chromeos/system_logs/debug_log_writer.cc File chrome/browser/chromeos/system_logs/debug_log_writer.cc (right): https://codereview.chromium.org/329853010/diff/70001/chrome/browser/chromeos/system_logs/debug_log_writer.cc#newcode1 chrome/browser/chromeos/system_logs/debug_log_writer.cc:1: // Copyright (c) 2014 The Chromium Authors. All rights ...
6 years, 5 months ago (2014-06-27 19:31:01 UTC) #6
Zachary Kuznia
LGTM with nits. https://codereview.chromium.org/329853010/diff/90001/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc File chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc (right): https://codereview.chromium.org/329853010/diff/90001/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc#newcode307 chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc:307: if (params->type == api::log_private::EVENT_TYPE_NETWORK) { Nit: ...
6 years, 5 months ago (2014-06-27 22:34:08 UTC) #7
zel
https://codereview.chromium.org/329853010/diff/90001/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc File chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc (right): https://codereview.chromium.org/329853010/diff/90001/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc#newcode307 chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc:307: if (params->type == api::log_private::EVENT_TYPE_NETWORK) { On 2014/06/27 22:34:07, Zachary ...
6 years, 5 months ago (2014-07-14 19:14:41 UTC) #8
zel
+kalman
6 years, 5 months ago (2014-07-18 22:32:52 UTC) #9
not at google - send to devlin
https://codereview.chromium.org/329853010/diff/330001/chrome/common/extensions/api/_api_features.json File chrome/common/extensions/api/_api_features.json (right): https://codereview.chromium.org/329853010/diff/330001/chrome/common/extensions/api/_api_features.json#newcode496 chrome/common/extensions/api/_api_features.json:496: "extension_types": ["extension", "platform_app"], you don't even need this line, ...
6 years, 5 months ago (2014-07-18 22:45:09 UTC) #10
zel
+rockot for extensions/browser/api/api_resource_manager.h part In other to get all my file business on the sequenced ...
6 years, 5 months ago (2014-07-22 01:26:36 UTC) #11
Ken Rockot(use gerrit already)
Nice- ApiResourceManager stuff lgtm https://codereview.chromium.org/329853010/diff/370001/extensions/browser/api/api_resource_manager.h File extensions/browser/api/api_resource_manager.h (right): https://codereview.chromium.org/329853010/diff/370001/extensions/browser/api/api_resource_manager.h#newcode382 extensions/browser/api/api_resource_manager.h:382: // Instead of kThreadId. classes ...
6 years, 5 months ago (2014-07-22 15:34:00 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/329853010/diff/330001/chrome/renderer/resources/extensions/log_private_custom_bindings.js File chrome/renderer/resources/extensions/log_private_custom_bindings.js (right): https://codereview.chromium.org/329853010/diff/330001/chrome/renderer/resources/extensions/log_private_custom_bindings.js#newcode23 chrome/renderer/resources/extensions/log_private_custom_bindings.js:23: // after the original window is closed. On 2014/07/22 ...
6 years, 5 months ago (2014-07-22 17:55:07 UTC) #13
zel
https://codereview.chromium.org/329853010/diff/370001/chrome/renderer/resources/extensions/log_private_custom_bindings.js File chrome/renderer/resources/extensions/log_private_custom_bindings.js (right): https://codereview.chromium.org/329853010/diff/370001/chrome/renderer/resources/extensions/log_private_custom_bindings.js#newcode24 chrome/renderer/resources/extensions/log_private_custom_bindings.js:24: if (window == backgroundPage) { On 2014/07/22 17:55:07, kalman ...
6 years, 5 months ago (2014-07-22 22:45:03 UTC) #14
not at google - send to devlin
lgtm https://codereview.chromium.org/329853010/diff/430001/chrome/renderer/resources/extensions/file_entry_binding_util.js File chrome/renderer/resources/extensions/file_entry_binding_util.js (right): https://codereview.chromium.org/329853010/diff/430001/chrome/renderer/resources/extensions/file_entry_binding_util.js#newcode1 chrome/renderer/resources/extensions/file_entry_binding_util.js:1: // Copyright (c) 2012 The Chromium Authors. All ...
6 years, 5 months ago (2014-07-23 01:52:07 UTC) #15
zel
+sky for stuff under chrome/* and chrome/common/* https://codereview.chromium.org/329853010/diff/430001/chrome/renderer/resources/extensions/file_entry_binding_util.js File chrome/renderer/resources/extensions/file_entry_binding_util.js (right): https://codereview.chromium.org/329853010/diff/430001/chrome/renderer/resources/extensions/file_entry_binding_util.js#newcode1 chrome/renderer/resources/extensions/file_entry_binding_util.js:1: // Copyright ...
6 years, 5 months ago (2014-07-23 03:12:53 UTC) #16
sky
LGTM
6 years, 5 months ago (2014-07-23 15:44:26 UTC) #17
jam
lgtm
6 years, 5 months ago (2014-07-23 16:49:35 UTC) #18
Alexei Svitkine (slow)
lgtm
6 years, 5 months ago (2014-07-23 16:58:00 UTC) #19
zel
The CQ bit was checked by zelidrag@chromium.org
6 years, 5 months ago (2014-07-23 16:59:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/329853010/470001
6 years, 5 months ago (2014-07-23 17:01:08 UTC) #21
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 22:29:54 UTC) #22
Message was sent while issue was closed.
Change committed as 285065

Powered by Google App Engine
This is Rietveld 408576698