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

Issue 418733002: Prevent duplicate navigation to debug URLs from Telemetry. (Closed)

Created:
6 years, 5 months ago by vmiura
Modified:
6 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org, nasko+codewatch_chromium.org, jam, creis+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Prevent duplicate navigation to debug URLs from Telemetry. Previously Telemetry enabled navigation to Debug URLs by adding a custom URL handler. However, URL handlers can be called multiple times per Navigation, and Debug URL actions must happen only once. This CL enables Telemetry URL handling to be done by the normal NavigationControllerImpl::LoadURLWithParams() to HandleDebugURL() path. This also removes the prior workaround added in crrev.com/277113002 . BUG=395326 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286117

Patch Set 1 #

Total comments: 5

Patch Set 2 : Reinstate DebugURLHandler. Remove IsDebugURL(). #

Total comments: 4

Patch Set 3 : Add process crash count info to about:gpu. Add use for unittest. #

Patch Set 4 : Added missing file gpu_process_crash.html #

Total comments: 8

Patch Set 5 : Cleaned GpuProcessHost static vars; addressed comments. #

Patch Set 6 : Read crash count from Browser System Info instead of scrubbing chrome://gpu page. #

Total comments: 3

Patch Set 7 : Add browser_unittest.BrowserTest.testGetSystemInfoNotCachedObject. #

Patch Set 8 : Fixed flakiness on gpu process crash count. #

Patch Set 9 : Revert last_gpu_crash_time to function static instead of class static variable. #

Total comments: 2

Patch Set 10 : Call GetSystemInfo() again for latest data. #

Total comments: 2

Patch Set 11 : Fix comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+264 lines, -120 lines) Patch
M content/browser/browser_url_handler_impl.cc View 1 2 2 chunks +0 lines, -13 lines 0 comments Download
M content/browser/frame_host/debug_urls.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/frame_host/debug_urls.cc View 1 3 chunks +10 lines, -18 lines 0 comments Download
M content/browser/frame_host/navigation_controller_impl.cc View 2 chunks +9 lines, -14 lines 0 comments Download
M content/browser/gpu/gpu_data_manager_impl_private.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/gpu/gpu_internals_ui.cc View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.h View 1 2 3 4 5 6 7 8 4 chunks +12 lines, -0 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 6 7 8 5 chunks +73 lines, -61 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A content/test/data/gpu/gpu_process_crash.html View 1 2 3 4 5 6 7 1 chunk +52 lines, -0 lines 0 comments Download
M content/test/gpu/gpu_tests/context_lost.py View 1 2 3 4 5 6 7 8 9 10 10 chunks +84 lines, -6 lines 0 comments Download
M gpu/config/gpu_info.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/config/gpu_info.cc View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py View 1 2 3 4 5 2 chunks +0 lines, -2 lines 0 comments Download
M tools/telemetry/telemetry/core/browser_unittest.py View 1 2 3 4 5 6 1 chunk +11 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
vmiura
Please review. This is targeting a P1 flakiness bug in GPU bots.
6 years, 5 months ago (2014-07-23 22:45:14 UTC) #1
Ken Russell (switch to Gerrit)
Thanks for diagnosing and fixing this. The code changes look good to me but I'd ...
6 years, 5 months ago (2014-07-23 23:03:04 UTC) #2
Charlie Reis
I'm mainly deferring to kbr@, since I'm not 100% sure on the implications. See one ...
6 years, 5 months ago (2014-07-23 23:04:18 UTC) #3
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/418733002/diff/1/content/browser/browser_url_handler_impl.cc File content/browser/browser_url_handler_impl.cc (left): https://codereview.chromium.org/418733002/diff/1/content/browser/browser_url_handler_impl.cc#oldcode89 content/browser/browser_url_handler_impl.cc:89: return IsRendererDebugURL(*url); On 2014/07/23 23:04:17, Charlie Reis wrote: > ...
6 years, 5 months ago (2014-07-23 23:08:44 UTC) #4
vmiura
https://codereview.chromium.org/418733002/diff/1/content/browser/browser_url_handler_impl.cc File content/browser/browser_url_handler_impl.cc (left): https://codereview.chromium.org/418733002/diff/1/content/browser/browser_url_handler_impl.cc#oldcode89 content/browser/browser_url_handler_impl.cc:89: return IsRendererDebugURL(*url); On 2014/07/23 23:08:43, Ken Russell wrote: > ...
6 years, 5 months ago (2014-07-23 23:39:59 UTC) #5
Ken Russell (switch to Gerrit)
Thanks. Looks good modulo explicit test. https://codereview.chromium.org/418733002/diff/20001/content/browser/browser_url_handler_impl.cc File content/browser/browser_url_handler_impl.cc (right): https://codereview.chromium.org/418733002/diff/20001/content/browser/browser_url_handler_impl.cc#newcode7 content/browser/browser_url_handler_impl.cc:7: #include "base/command_line.h" No ...
6 years, 5 months ago (2014-07-23 23:53:58 UTC) #6
vmiura
+ nasko for gpu_messages.h review. I've added the discussed unit test using the about://gpu information ...
6 years, 5 months ago (2014-07-24 23:40:40 UTC) #7
Ken Russell (switch to Gerrit)
+more security team reviewers for gpu_messages.h
6 years, 5 months ago (2014-07-25 00:53:09 UTC) #8
Ken Russell (switch to Gerrit)
Looks good overall. Only one significant comment. https://codereview.chromium.org/418733002/diff/60001/content/browser/gpu/gpu_data_manager_impl_private.cc File content/browser/gpu/gpu_data_manager_impl_private.cc (right): https://codereview.chromium.org/418733002/diff/60001/content/browser/gpu/gpu_data_manager_impl_private.cc#newcode761 content/browser/gpu/gpu_data_manager_impl_private.cc:761: gpu_info_.process_crash_count++; I'm ...
6 years, 5 months ago (2014-07-25 01:08:27 UTC) #9
Ken Russell (switch to Gerrit)
+zmo as FYI for GPU data manager changes
6 years, 5 months ago (2014-07-25 01:08:55 UTC) #10
nasko
gpu_messages.h LGTM
6 years, 5 months ago (2014-07-25 06:40:24 UTC) #11
vmiura
Addressed comments. PTAL. https://codereview.chromium.org/418733002/diff/60001/content/browser/gpu/gpu_data_manager_impl_private.cc File content/browser/gpu/gpu_data_manager_impl_private.cc (right): https://codereview.chromium.org/418733002/diff/60001/content/browser/gpu/gpu_data_manager_impl_private.cc#newcode761 content/browser/gpu/gpu_data_manager_impl_private.cc:761: gpu_info_.process_crash_count++; On 2014/07/25 01:08:26, Ken Russell ...
6 years, 5 months ago (2014-07-25 19:56:03 UTC) #12
Charlie Reis
I'll defer on the gpu/ stuff, but the rest LGTM.
6 years, 5 months ago (2014-07-25 20:01:37 UTC) #13
vmiura
Added: dtu@chromium.org, tonyg@chromium.org for review of changes in: tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py
6 years, 5 months ago (2014-07-25 20:40:26 UTC) #14
vmiura
Ken, as discussed I've changed the test to use Browser System Info instead of scrubbing ...
6 years, 5 months ago (2014-07-25 20:41:47 UTC) #15
tonyg
https://codereview.chromium.org/418733002/diff/100001/tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py File tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py (left): https://codereview.chromium.org/418733002/diff/100001/tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py#oldcode15 tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py:15: @decorators.Cache Let's pull the Telemetry change into a separate ...
6 years, 5 months ago (2014-07-25 20:47:35 UTC) #16
tonyg
On 2014/07/25 20:47:35, tonyg wrote: > https://codereview.chromium.org/418733002/diff/100001/tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py > File tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py > (left): > > https://codereview.chromium.org/418733002/diff/100001/tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py#oldcode15 ...
6 years, 5 months ago (2014-07-25 20:50:14 UTC) #17
vmiura
On 2014/07/25 20:47:35, tonyg wrote: > https://codereview.chromium.org/418733002/diff/100001/tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py > File tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py > (left): > > https://codereview.chromium.org/418733002/diff/100001/tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py#oldcode15 ...
6 years, 5 months ago (2014-07-25 20:52:59 UTC) #18
Ken Russell (switch to Gerrit)
This is much nicer than scraping the about:gpu page. LGTM. https://codereview.chromium.org/418733002/diff/100001/content/browser/gpu/gpu_process_host.cc File content/browser/gpu/gpu_process_host.cc (right): https://codereview.chromium.org/418733002/diff/100001/content/browser/gpu/gpu_process_host.cc#newcode73 ...
6 years, 5 months ago (2014-07-25 21:21:36 UTC) #19
vmiura
As Ken mentioned, I've added a browser unittest in this patch.
6 years, 5 months ago (2014-07-25 21:30:29 UTC) #20
tonyg
On 2014/07/25 20:52:59, vmiura wrote: > On 2014/07/25 20:47:35, tonyg wrote: > > > https://codereview.chromium.org/418733002/diff/100001/tools/telemetry/telemetry/core/backends/chrome/system_info_backend.py ...
6 years, 5 months ago (2014-07-25 21:50:46 UTC) #21
Ken Russell (switch to Gerrit)
On 2014/07/25 21:50:46, tonyg wrote: > On 2014/07/25 20:52:59, vmiura wrote: > > On 2014/07/25 ...
6 years, 5 months ago (2014-07-25 21:57:36 UTC) #22
tonyg
On 2014/07/25 21:57:36, Ken Russell wrote: > On 2014/07/25 21:50:46, tonyg wrote: > > On ...
6 years, 5 months ago (2014-07-26 01:58:22 UTC) #23
Ken Russell (switch to Gerrit)
On 2014/07/26 01:58:22, tonyg wrote: > > Can you point me at the source where ...
6 years, 4 months ago (2014-07-28 18:45:53 UTC) #24
vmiura
PTAL, I think this is ready.
6 years, 4 months ago (2014-07-28 22:50:50 UTC) #25
Ken Russell (switch to Gerrit)
Nice work. Thanks for persevering with this fix. One issue then LGTM. https://codereview.chromium.org/418733002/diff/160001/content/test/gpu/gpu_tests/context_lost.py File content/test/gpu/gpu_tests/context_lost.py ...
6 years, 4 months ago (2014-07-28 23:01:35 UTC) #26
tonyg
lgtm with Ken's explanation.
6 years, 4 months ago (2014-07-28 23:04:13 UTC) #27
vmiura
https://codereview.chromium.org/418733002/diff/160001/content/test/gpu/gpu_tests/context_lost.py File content/test/gpu/gpu_tests/context_lost.py (right): https://codereview.chromium.org/418733002/diff/160001/content/test/gpu/gpu_tests/context_lost.py#newcode133 content/test/gpu/gpu_tests/context_lost.py:133: system_info.gpu.aux_attributes[u'process_crash_count'] On 2014/07/28 23:01:34, Ken Russell wrote: > This ...
6 years, 4 months ago (2014-07-28 23:08:22 UTC) #28
Ken Russell (switch to Gerrit)
LGTM again. https://codereview.chromium.org/418733002/diff/180001/content/test/gpu/gpu_tests/context_lost.py File content/test/gpu/gpu_tests/context_lost.py (right): https://codereview.chromium.org/418733002/diff/180001/content/test/gpu/gpu_tests/context_lost.py#newcode130 content/test/gpu/gpu_tests/context_lost.py:130: # to attempt to catch latent process ...
6 years, 4 months ago (2014-07-28 23:09:32 UTC) #29
vmiura
The CQ bit was checked by vmiura@chromium.org
6 years, 4 months ago (2014-07-28 23:09:52 UTC) #30
vmiura
The CQ bit was unchecked by vmiura@chromium.org
6 years, 4 months ago (2014-07-28 23:10:30 UTC) #31
vmiura
https://codereview.chromium.org/418733002/diff/180001/content/test/gpu/gpu_tests/context_lost.py File content/test/gpu/gpu_tests/context_lost.py (right): https://codereview.chromium.org/418733002/diff/180001/content/test/gpu/gpu_tests/context_lost.py#newcode130 content/test/gpu/gpu_tests/context_lost.py:130: # to attempt to catch latent process crashes. On ...
6 years, 4 months ago (2014-07-28 23:12:55 UTC) #32
vmiura
The CQ bit was checked by vmiura@chromium.org
6 years, 4 months ago (2014-07-28 23:13:38 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vmiura@chromium.org/418733002/200001
6 years, 4 months ago (2014-07-28 23:14:25 UTC) #34
commit-bot: I haz the power
6 years, 4 months ago (2014-07-29 08:01:46 UTC) #35
Message was sent while issue was closed.
Change committed as 286117

Powered by Google App Engine
This is Rietveld 408576698