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

Issue 15915003: Removing deprecated DCHECK's that require App Launcher to be user-level only. (Closed)

Created:
7 years, 7 months ago by huangs
Modified:
7 years, 6 months ago
Reviewers:
gab, grt (UTC plus 2)
CC:
chromium-reviews, grt+watch_chromium.org
Visibility:
Public.

Description

Removing deprecated DCHECK's that require App Launcher to be user-level only. With Chrome / App Launcher unification, the App Launcher can be installed at system-level. Old DCHECK's to enforce otherwise are creating bogus failures, and should be removed. This bug is triggered by https://chromiumcodereview.appspot.com/14711006/ , which adds "shadow" App Launcher Clients/ClientState keys to support 7DA tracking for App Launcher. Unfortunately, these keys are read, and are interpreted as the presence of App Launcher (thus triggering DCHECK). A separate issue is that installation_validator complains about missing information in the "shadow" registry key. This is less urgent, and hence not part of this CL. BUG=243432 TEST=Install system-level Chrome with debug build, see that no DCHECK occurs. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=202605

Patch Set 1 #

Patch Set 2 : Deleting bogus warning message. #

Total comments: 9

Patch Set 3 : Replacing DCHECK in shortcut creation with warning. #

Total comments: 2

Patch Set 4 : Decided to leave install.cc alone. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -9 lines) Patch
M chrome/installer/setup/uninstall.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/installer/util/installation_validator.cc View 1 2 chunks +0 lines, -7 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
huangs
I think the DCHECK is a more serious issue. The installation_validator issue can be handled ...
7 years, 7 months ago (2013-05-23 20:29:10 UTC) #1
gab
Sam, please stop adding both me and greg in parallel to code reviews, we both ...
7 years, 7 months ago (2013-05-23 20:37:47 UTC) #2
huangs
Acknowledged. Sorry for the habit; this is the first time I got feedback, that I ...
7 years, 7 months ago (2013-05-23 20:47:38 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/15915003/2001
7 years, 7 months ago (2013-05-23 21:14:15 UTC) #4
grt (UTC plus 2)
https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc#newcode546 chrome/installer/setup/install.cc:546: CURRENT_USER, app_launcher_shortcut_operation); will this ever be hit? it's very ...
7 years, 7 months ago (2013-05-24 01:18:07 UTC) #5
gab
https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc#newcode546 chrome/installer/setup/install.cc:546: CURRENT_USER, app_launcher_shortcut_operation); On 2013/05/24 01:18:07, grt wrote: > will ...
7 years, 7 months ago (2013-05-24 12:32:33 UTC) #6
gab
@grt: This is independent of this CL, right? Should we just CQ? This is blocking ...
7 years, 7 months ago (2013-05-24 15:33:45 UTC) #7
grt (UTC plus 2)
https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc#newcode546 chrome/installer/setup/install.cc:546: CURRENT_USER, app_launcher_shortcut_operation); On 2013/05/24 12:32:33, gab wrote: > On ...
7 years, 7 months ago (2013-05-24 15:41:09 UTC) #8
gab
https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc#newcode546 chrome/installer/setup/install.cc:546: CURRENT_USER, app_launcher_shortcut_operation); On 2013/05/24 12:32:33, gab wrote: > On ...
7 years, 7 months ago (2013-05-24 15:42:16 UTC) #9
huangs
https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc#newcode546 chrome/installer/setup/install.cc:546: CURRENT_USER, app_launcher_shortcut_operation); We're not hitting this DCHECK, but I ...
7 years, 7 months ago (2013-05-24 15:54:30 UTC) #10
gab
https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc#newcode546 chrome/installer/setup/install.cc:546: CURRENT_USER, app_launcher_shortcut_operation); On 2013/05/24 15:54:30, huangs1 wrote: > We're ...
7 years, 7 months ago (2013-05-24 15:57:55 UTC) #11
grt (UTC plus 2)
https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc#newcode546 chrome/installer/setup/install.cc:546: CURRENT_USER, app_launcher_shortcut_operation); On 2013/05/24 15:54:30, huangs1 wrote: > We're ...
7 years, 7 months ago (2013-05-24 16:04:24 UTC) #12
grt (UTC plus 2)
On 2013/05/24 15:57:55, gab wrote: > https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc > File chrome/installer/setup/install.cc (right): > > https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc#newcode546 > ...
7 years, 7 months ago (2013-05-24 16:06:42 UTC) #13
huangs
https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc#newcode546 chrome/installer/setup/install.cc:546: CURRENT_USER, app_launcher_shortcut_operation); Okay... I'm back on Tuesday though. A ...
7 years, 7 months ago (2013-05-24 16:21:57 UTC) #14
huangs
https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (right): https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc#newcode546 chrome/installer/setup/install.cc:546: CURRENT_USER, app_launcher_shortcut_operation); Did some testing and investigation, verified that ...
7 years, 7 months ago (2013-05-24 18:39:46 UTC) #15
grt (UTC plus 2)
On 2013/05/24 18:39:46, huangs1 wrote: > https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc > File chrome/installer/setup/install.cc (right): > > https://codereview.chromium.org/15915003/diff/2001/chrome/installer/setup/install.cc#newcode546 > ...
7 years, 7 months ago (2013-05-24 19:07:44 UTC) #16
huangs
This change removes the DCHECK without changing functionality (the code path is for the deprecated ...
7 years, 6 months ago (2013-05-28 14:31:46 UTC) #17
gab
https://codereview.chromium.org/15915003/diff/35001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (left): https://codereview.chromium.org/15915003/diff/35001/chrome/installer/setup/install.cc#oldcode540 chrome/installer/setup/install.cc:540: DCHECK(!installer_state.system_install()); I don't think we need to remove this ...
7 years, 6 months ago (2013-05-28 14:51:39 UTC) #18
huangs
https://codereview.chromium.org/15915003/diff/35001/chrome/installer/setup/install.cc File chrome/installer/setup/install.cc (left): https://codereview.chromium.org/15915003/diff/35001/chrome/installer/setup/install.cc#oldcode540 chrome/installer/setup/install.cc:540: DCHECK(!installer_state.system_install()); Agreed; there's no need to wipe out the ...
7 years, 6 months ago (2013-05-28 14:57:03 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/15915003/40002
7 years, 6 months ago (2013-05-28 14:57:16 UTC) #20
gab
Thanks, re-lgtm, FYI to "run tests" you don't need to check the commit-box; use "git ...
7 years, 6 months ago (2013-05-28 15:02:34 UTC) #21
grt (UTC plus 2)
lgtm++
7 years, 6 months ago (2013-05-28 18:24:21 UTC) #22
commit-bot: I haz the power
7 years, 6 months ago (2013-05-28 18:31:21 UTC) #23
Message was sent while issue was closed.
Change committed as 202605

Powered by Google App Engine
This is Rietveld 408576698