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

Issue 1630923002: Remove PRODUCT_STRING_PATH from chrome_constants.h on Windows. (Closed)

Created:
4 years, 11 months ago by gab
Modified:
4 years, 8 months ago
CC:
chromium-reviews, asvitkine+watch_chromium.org, scottmg
Base URL:
https://chromium.googlesource.com/chromium/src.git@c2_rm_PSP_profile_resetter
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove PRODUCT_STRING_PATH from chrome_constants.h on Windows. Its last usage was from crash and exit code reporting registry keys inside chrome_constants.cc which have now been replaced by distribution friendly (e.g. Google Chrome versus Canary) helpers. kBrowserCrashDumpAttemptsRegistryPath was previously handling Canary through a hard-coded Google\Chrome key but will now properly use a "Google\Chrome SxS" key per its distribution. Note 1: This means that Canary stats depending on data stored in the previous kBrowserCrashDumpAttemptsRegistryPath will be reset when this CL lands. Note 2: kBrowserExitCodesRegistryPath wasn't handling Canary which means that reports generated from these entries could have previously been incorrect on machines that had both Google Chrome (Dev/Beta/Stable) and Canary installed side-by-side per them sharing that key. BUG=577820 Committed: https://crrev.com/7c45cfded56e2f0ee3f0d04ba9d926844c70e499 Cr-Commit-Position: refs/heads/master@{#387669}

Patch Set 1 #

Total comments: 11

Patch Set 2 : rebase onto r372773 #

Patch Set 3 : review #

Patch Set 4 : rebase on r373339 and rm unused install_util.h include #

Total comments: 11

Patch Set 5 : merge up to r374082 #

Patch Set 6 : merge up to r378768 #

Patch Set 7 : review:grt #

Patch Set 8 : merge up to r379824 #

Total comments: 3

Patch Set 9 : merge up to r385455 #

Patch Set 10 : Introduce metrics_constants_util_win target #

Patch Set 11 : use source_set #

Total comments: 3

Patch Set 12 : fix GYP #

Patch Set 13 : merge up to r387347 #

Patch Set 14 : nit #

Total comments: 12

Patch Set 15 : fix GN #

Patch Set 16 : review:grt -- win-only deps #

Patch Set 17 : de-dup is_win blocks in GN too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -95 lines) Patch
M chrome/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/app/chrome_crash_reporter_client.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/app/main_dll_loader_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/metrics/chrome_metrics_service_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/metrics/chrome_stability_metrics_provider.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +6 lines, -9 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/chrome_exe.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +14 lines, -19 lines 0 comments Download
M chrome/chrome_watcher/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M chrome/chrome_watcher/chrome_watcher_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +9 lines, -13 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +16 lines, -1 line 0 comments Download
M chrome/common/chrome_constants.h View 1 2 3 4 2 chunks +0 lines, -20 lines 0 comments Download
M chrome/common/chrome_constants.cc View 1 2 3 4 2 chunks +2 lines, -9 lines 0 comments Download
A chrome/common/metrics_constants_util_win.h View 1 2 3 4 5 6 7 8 9 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/common/metrics_constants_util_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +38 lines, -0 lines 0 comments Download
M components/browser_watcher/exit_code_watcher_win.h View 1 2 3 chunks +3 lines, -2 lines 0 comments Download
M components/browser_watcher/exit_code_watcher_win.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -3 lines 0 comments Download
M components/browser_watcher/watcher_metrics_provider_win.h View 2 chunks +2 lines, -2 lines 0 comments Download
M components/browser_watcher/watcher_metrics_provider_win.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 50 (17 generated)
gab
Siggi PTAL (and please ack side-effects noted in CL description). CC scottmg FYI per side-effects ...
4 years, 11 months ago (2016-01-25 20:16:40 UTC) #7
Sigurður Ásgeirsson
nice - thanks for the cleanup. It is NOT OK to pass non-PODs across module ...
4 years, 11 months ago (2016-01-25 20:50:24 UTC) #8
grt (UTC plus 2)
it'll be nice to have this fixed. thanks for taking a stab at it! https://codereview.chromium.org/1630923002/diff/1/chrome/common/chrome_constants.h ...
4 years, 11 months ago (2016-01-25 21:18:20 UTC) #9
gab
Responses below for discussion (no code change yet) https://codereview.chromium.org/1630923002/diff/1/chrome/chrome_watcher/chrome_watcher_main.cc File chrome/chrome_watcher/chrome_watcher_main.cc (right): https://codereview.chromium.org/1630923002/diff/1/chrome/chrome_watcher/chrome_watcher_main.cc#newcode349 chrome/chrome_watcher/chrome_watcher_main.cc:349: extern ...
4 years, 11 months ago (2016-01-26 02:55:05 UTC) #10
Sigurður Ásgeirsson
On Mon, Jan 25, 2016 at 9:55 PM <gab@chromium.org> wrote: > Responses below for discussion ...
4 years, 11 months ago (2016-01-26 14:04:11 UTC) #11
grt (UTC plus 2)
https://codereview.chromium.org/1630923002/diff/1/chrome/common/chrome_constants.h File chrome/common/chrome_constants.h (right): https://codereview.chromium.org/1630923002/diff/1/chrome/common/chrome_constants.h#newcode138 chrome/common/chrome_constants.h:138: base::string16 GetBrowserCrashDumpAttemptsRegistryPath(); On 2016/01/26 02:55:05, gab wrote: > On ...
4 years, 11 months ago (2016-01-26 16:13:04 UTC) #12
Sigurður Ásgeirsson
On Tue, Jan 26, 2016 at 11:13 AM <grt@chromium.org> wrote: > > I like the ...
4 years, 11 months ago (2016-01-26 18:18:38 UTC) #13
gab
I guess then the best option is to grab the string16 on chrome_exe side and ...
4 years, 11 months ago (2016-01-26 18:23:29 UTC) #14
gab
On 2016/01/26 18:23:29, gab wrote: > I guess then the best option is to grab ...
4 years, 11 months ago (2016-01-26 18:24:32 UTC) #15
grt (UTC plus 2)
On 2016/01/26 18:23:29, gab wrote: > I guess then the best option is to grab ...
4 years, 10 months ago (2016-01-28 13:45:53 UTC) #16
gab
All addressed I think, PTAL.
4 years, 10 months ago (2016-02-03 21:31:58 UTC) #19
Sigurður Ásgeirsson
browser_watcher/* lgtm. Thanks!
4 years, 10 months ago (2016-02-03 21:57:08 UTC) #20
sky
chrome/constants LGTM
4 years, 10 months ago (2016-02-03 22:20:08 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1630923002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1630923002/100001
4 years, 10 months ago (2016-02-04 01:39:02 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/88632) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 10 months ago (2016-02-04 01:43:22 UTC) #25
gab
Thanks, @grt for chrome/app.
4 years, 10 months ago (2016-02-04 15:15:29 UTC) #26
grt (UTC plus 2)
https://codereview.chromium.org/1630923002/diff/100001/chrome/common/chrome_constants_util_win.cc File chrome/common/chrome_constants_util_win.cc (right): https://codereview.chromium.org/1630923002/diff/100001/chrome/common/chrome_constants_util_win.cc#newcode7 chrome/common/chrome_constants_util_win.cc:7: #include "chrome/installer/util/browser_distribution.h" common_constants doesn't depend on installer_util, so this ...
4 years, 10 months ago (2016-02-04 15:52:30 UTC) #27
gab
Sorry for the delay, @grt PTAL. Thanks, Gab https://codereview.chromium.org/1630923002/diff/100001/chrome/common/chrome_constants_util_win.cc File chrome/common/chrome_constants_util_win.cc (right): https://codereview.chromium.org/1630923002/diff/100001/chrome/common/chrome_constants_util_win.cc#newcode7 chrome/common/chrome_constants_util_win.cc:7: #include ...
4 years, 9 months ago (2016-03-07 21:53:55 UTC) #30
grt (UTC plus 2)
https://codereview.chromium.org/1630923002/diff/100001/chrome/common/chrome_constants_util_win.cc File chrome/common/chrome_constants_util_win.cc (right): https://codereview.chromium.org/1630923002/diff/100001/chrome/common/chrome_constants_util_win.cc#newcode7 chrome/common/chrome_constants_util_win.cc:7: #include "chrome/installer/util/browser_distribution.h" On 2016/03/07 21:53:55, gab wrote: > On ...
4 years, 9 months ago (2016-03-08 15:44:47 UTC) #31
gab
Reply below... Dependency mess.. https://codereview.chromium.org/1630923002/diff/100001/chrome/common/chrome_constants_util_win.cc File chrome/common/chrome_constants_util_win.cc (right): https://codereview.chromium.org/1630923002/diff/100001/chrome/common/chrome_constants_util_win.cc#newcode7 chrome/common/chrome_constants_util_win.cc:7: #include "chrome/installer/util/browser_distribution.h" On 2016/03/08 15:44:47, ...
4 years, 9 months ago (2016-03-09 20:29:35 UTC) #32
grt (UTC plus 2)
https://codereview.chromium.org/1630923002/diff/100001/chrome/common/chrome_constants_util_win.cc File chrome/common/chrome_constants_util_win.cc (right): https://codereview.chromium.org/1630923002/diff/100001/chrome/common/chrome_constants_util_win.cc#newcode7 chrome/common/chrome_constants_util_win.cc:7: #include "chrome/installer/util/browser_distribution.h" On 2016/03/09 20:29:35, gab wrote: > On ...
4 years, 9 months ago (2016-03-10 19:14:42 UTC) #33
gab
On 2016/03/10 19:14:42, grt (very slow) wrote: > https://codereview.chromium.org/1630923002/diff/100001/chrome/common/chrome_constants_util_win.cc > File chrome/common/chrome_constants_util_win.cc (right): > > ...
4 years, 9 months ago (2016-03-14 18:47:19 UTC) #34
gab
On 2016/03/14 18:47:19, gab wrote: > On 2016/03/10 19:14:42, grt (very slow) wrote: > > ...
4 years, 8 months ago (2016-04-07 02:01:23 UTC) #35
gab
On 2016/04/07 02:01:23, gab wrote: > On 2016/03/14 18:47:19, gab wrote: > > On 2016/03/10 ...
4 years, 8 months ago (2016-04-11 16:07:12 UTC) #36
gab
@grt added metrics_constants_util_win target as discussed, but for some reason I don't understand chrome.dll doesn't ...
4 years, 8 months ago (2016-04-12 19:21:08 UTC) #38
gab
On 2016/04/12 19:21:08, gab wrote: > @grt added metrics_constants_util_win target as discussed, but for some ...
4 years, 8 months ago (2016-04-14 20:37:44 UTC) #39
gab
On 2016/04/14 20:37:44, gab wrote: > On 2016/04/12 19:21:08, gab wrote: > > @grt added ...
4 years, 8 months ago (2016-04-15 15:21:15 UTC) #40
grt (UTC plus 2)
looks good https://codereview.chromium.org/1630923002/diff/360001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/1630923002/diff/360001/chrome/chrome_browser.gypi#newcode3469 chrome/chrome_browser.gypi:3469: 'file_pre_reader', how about putting the metrics_constants_util_win dependency ...
4 years, 8 months ago (2016-04-15 15:29:33 UTC) #41
gab
Thanks, PTAL. https://codereview.chromium.org/1630923002/diff/360001/chrome/chrome_browser.gypi File chrome/chrome_browser.gypi (right): https://codereview.chromium.org/1630923002/diff/360001/chrome/chrome_browser.gypi#newcode3469 chrome/chrome_browser.gypi:3469: 'file_pre_reader', On 2016/04/15 15:29:32, grt wrote: > ...
4 years, 8 months ago (2016-04-15 18:14:07 UTC) #42
grt (UTC plus 2)
lgtm!
4 years, 8 months ago (2016-04-15 18:51:03 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1630923002/420001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1630923002/420001
4 years, 8 months ago (2016-04-15 19:12:32 UTC) #46
commit-bot: I haz the power
Committed patchset #17 (id:420001)
4 years, 8 months ago (2016-04-15 19:17:20 UTC) #48
commit-bot: I haz the power
4 years, 8 months ago (2016-04-15 19:18:28 UTC) #50
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/7c45cfded56e2f0ee3f0d04ba9d926844c70e499
Cr-Commit-Position: refs/heads/master@{#387669}

Powered by Google App Engine
This is Rietveld 408576698