Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Issue 169093007: Modify fileAtPath stat to track if the call was redirected by chrome_elf. (Closed)

Created:
6 years, 10 months ago by Cait (Slow)
Modified:
6 years, 10 months ago
CC:
chromium-reviews, caitkp+watch_chromium.org
Visibility:
Public.

Description

Modify fileAtPath stat to track if the call was redirected by chrome_elf. TEST=Manual: Start chrome.exe, wait ~60s and check chrome://histograms, the Stability.FileAtPath metric should have run (at least) once, and the resulting value should be 6, assuming the check succeeded. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253251

Patch Set 1 #

Patch Set 2 : remove beacon bits #

Total comments: 10

Patch Set 3 : Use a count instead of a bool #

Total comments: 6

Patch Set 4 : Move counter to anonymous namespace #

Total comments: 4

Patch Set 5 : Pre increment #

Total comments: 2

Patch Set 6 : Add comment explaining GetRedirectCount() #

Patch Set 7 : un-break component build #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -12 lines) Patch
M chrome/browser/DEPS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/file_path_verifier_win.cc View 1 2 3 4 5 4 chunks +17 lines, -3 lines 0 comments Download
M chrome_elf/chrome_elf.def View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome_elf/chrome_elf.gyp View 1 2 3 4 5 6 7 2 chunks +10 lines, -0 lines 0 comments Download
M chrome_elf/chrome_redirects.def View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A + chrome_elf/chrome_redirects_main.cc View 1 2 3 4 5 6 1 chunk +14 lines, -9 lines 0 comments Download
M chrome_elf/create_file/chrome_create_file.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome_elf/create_file/chrome_create_file.cc View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 40 (0 generated)
Cait (Slow)
Robert: PTAL at chrome_elf changes. Gab: PTAL at file_path_verifier_win changes. Does adding the 3 new ...
6 years, 10 months ago (2014-02-18 18:47:18 UTC) #1
robertshield
Looks awesome, minor suggestion re bool -> count https://codereview.chromium.org/169093007/diff/30001/chrome_elf/create_file/chrome_create_file.cc File chrome_elf/create_file/chrome_create_file.cc (right): https://codereview.chromium.org/169093007/diff/30001/chrome_elf/create_file/chrome_create_file.cc#newcode15 chrome_elf/create_file/chrome_create_file.cc:15: bool ...
6 years, 10 months ago (2014-02-18 19:36:03 UTC) #2
gab
https://codereview.chromium.org/169093007/diff/30001/chrome/browser/profiles/file_path_verifier_win.cc File chrome/browser/profiles/file_path_verifier_win.cc (right): https://codereview.chromium.org/169093007/diff/30001/chrome/browser/profiles/file_path_verifier_win.cc#newcode43 chrome/browser/profiles/file_path_verifier_win.cc:43: bool was_redirected = LastCallWasRedirected(); LastCallWasRedirected() is a bit vague ...
6 years, 10 months ago (2014-02-18 19:43:10 UTC) #3
robertshield
https://codereview.chromium.org/169093007/diff/30001/chrome_elf/create_file/chrome_create_file.cc File chrome_elf/create_file/chrome_create_file.cc (right): https://codereview.chromium.org/169093007/diff/30001/chrome_elf/create_file/chrome_create_file.cc#newcode15 chrome_elf/create_file/chrome_create_file.cc:15: bool g_last_call_was_redirected = false; On 2014/02/18 19:43:11, gab wrote: ...
6 years, 10 months ago (2014-02-18 19:46:22 UTC) #4
Cait (Slow)
Thanks! Switched to a count as discussed. https://codereview.chromium.org/169093007/diff/30001/chrome/browser/profiles/file_path_verifier_win.cc File chrome/browser/profiles/file_path_verifier_win.cc (right): https://codereview.chromium.org/169093007/diff/30001/chrome/browser/profiles/file_path_verifier_win.cc#newcode43 chrome/browser/profiles/file_path_verifier_win.cc:43: bool was_redirected ...
6 years, 10 months ago (2014-02-18 23:17:17 UTC) #5
robertshield
https://codereview.chromium.org/169093007/diff/110001/chrome/browser/profiles/file_path_verifier_win.cc File chrome/browser/profiles/file_path_verifier_win.cc (right): https://codereview.chromium.org/169093007/diff/110001/chrome/browser/profiles/file_path_verifier_win.cc#newcode35 chrome/browser/profiles/file_path_verifier_win.cc:35: int redirect_count_before = ::GetRedirectCount(); Sorry for not noticing this ...
6 years, 10 months ago (2014-02-18 23:30:20 UTC) #6
Cait (Slow)
https://codereview.chromium.org/169093007/diff/110001/chrome/browser/profiles/file_path_verifier_win.cc File chrome/browser/profiles/file_path_verifier_win.cc (right): https://codereview.chromium.org/169093007/diff/110001/chrome/browser/profiles/file_path_verifier_win.cc#newcode35 chrome/browser/profiles/file_path_verifier_win.cc:35: int redirect_count_before = ::GetRedirectCount(); On 2014/02/18 23:30:21, robertshield wrote: ...
6 years, 10 months ago (2014-02-19 15:43:18 UTC) #7
gab
https://codereview.chromium.org/169093007/diff/110001/chrome/browser/profiles/file_path_verifier_win.cc File chrome/browser/profiles/file_path_verifier_win.cc (right): https://codereview.chromium.org/169093007/diff/110001/chrome/browser/profiles/file_path_verifier_win.cc#newcode35 chrome/browser/profiles/file_path_verifier_win.cc:35: int redirect_count_before = ::GetRedirectCount(); On 2014/02/18 23:30:21, robertshield wrote: ...
6 years, 10 months ago (2014-02-19 15:43:40 UTC) #8
robertshield
lgtm https://codereview.chromium.org/169093007/diff/110001/chrome/browser/profiles/file_path_verifier_win.cc File chrome/browser/profiles/file_path_verifier_win.cc (right): https://codereview.chromium.org/169093007/diff/110001/chrome/browser/profiles/file_path_verifier_win.cc#newcode35 chrome/browser/profiles/file_path_verifier_win.cc:35: int redirect_count_before = ::GetRedirectCount(); On 2014/02/19 15:43:40, gab ...
6 years, 10 months ago (2014-02-19 16:17:01 UTC) #9
Cait (Slow)
[+noms] noms: can I haz OWNERS approval for c/b/profiles/file_path_verifier_win.cc changes? Thanks! https://codereview.chromium.org/169093007/diff/170001/chrome/browser/profiles/file_path_verifier_win.cc File chrome/browser/profiles/file_path_verifier_win.cc (right): ...
6 years, 10 months ago (2014-02-19 16:28:05 UTC) #10
noms (inactive)
You can has lgtm with a nit (which you can ignore if you want). https://codereview.chromium.org/169093007/diff/240001/chrome/browser/profiles/file_path_verifier_win.cc ...
6 years, 10 months ago (2014-02-19 16:48:13 UTC) #11
gab
lgtm Remove BUG= line if you don't have a bug# and a TEST= line specifying ...
6 years, 10 months ago (2014-02-19 18:11:28 UTC) #12
Cait (Slow)
Thanks all! https://codereview.chromium.org/169093007/diff/240001/chrome/browser/profiles/file_path_verifier_win.cc File chrome/browser/profiles/file_path_verifier_win.cc (right): https://codereview.chromium.org/169093007/diff/240001/chrome/browser/profiles/file_path_verifier_win.cc#newcode44 chrome/browser/profiles/file_path_verifier_win.cc:44: bool was_redirected = ::GetRedirectCount() > redirect_count_before; On ...
6 years, 10 months ago (2014-02-19 18:58:09 UTC) #13
Cait (Slow)
The CQ bit was checked by [email protected]
6 years, 10 months ago (2014-02-19 18:58:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/169093007/320001
6 years, 10 months ago (2014-02-19 19:04:48 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 10 months ago (2014-02-19 19:41:22 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel, mac_chromium_rel
6 years, 10 months ago (2014-02-19 19:41:22 UTC) #17
Cait (Slow)
+sky for chrome/browser/DEPS change -- thanks!
6 years, 10 months ago (2014-02-19 20:24:43 UTC) #18
sky
DEPS LGTM
6 years, 10 months ago (2014-02-19 21:25:40 UTC) #19
Cait (Slow)
The CQ bit was checked by [email protected]
6 years, 10 months ago (2014-02-19 21:26:48 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/169093007/320001
6 years, 10 months ago (2014-02-19 21:40:47 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 10 months ago (2014-02-19 22:11:59 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel, mac_chromium_rel
6 years, 10 months ago (2014-02-19 22:12:00 UTC) #23
Cait (Slow)
The CQ bit was checked by [email protected]
6 years, 10 months ago (2014-02-19 22:14:13 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/169093007/320001
6 years, 10 months ago (2014-02-19 22:50:57 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 10 months ago (2014-02-19 23:15:41 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel, mac_chromium_rel
6 years, 10 months ago (2014-02-19 23:15:41 UTC) #27
robertshield
still lgtm
6 years, 10 months ago (2014-02-24 18:19:18 UTC) #28
Cait (Slow)
The CQ bit was checked by [email protected]
6 years, 10 months ago (2014-02-24 22:06:34 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/169093007/720001
6 years, 10 months ago (2014-02-24 22:07:31 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/169093007/720001
6 years, 10 months ago (2014-02-25 01:32:37 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 10 months ago (2014-02-25 05:06:30 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 10 months ago (2014-02-25 05:06:31 UTC) #33
Cait (Slow)
The CQ bit was checked by [email protected]
6 years, 10 months ago (2014-02-25 13:45:55 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/169093007/720001
6 years, 10 months ago (2014-02-25 13:49:36 UTC) #35
commit-bot: I haz the power
The CQ bit was unchecked by [email protected]
6 years, 10 months ago (2014-02-25 13:52:16 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel
6 years, 10 months ago (2014-02-25 13:52:17 UTC) #37
Cait (Slow)
The CQ bit was checked by [email protected]
6 years, 10 months ago (2014-02-25 21:19:07 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/169093007/720001
6 years, 10 months ago (2014-02-25 21:19:45 UTC) #39
commit-bot: I haz the power
6 years, 10 months ago (2014-02-25 21:22:23 UTC) #40
Message was sent while issue was closed.
Change committed as 253251

Powered by Google App Engine
This is Rietveld 408576698