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

Issue 14711006: Quick fix to get 7DA counts for unified Chrome / App Launcher. (Closed)

Created:
7 years, 7 months ago by huangs
Modified:
7 years, 7 months ago
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, tfarina, grt+watch_chromium.org, koz (OOO until 15th September), calamity
Visibility:
Public.

Description

Quick fix to get 7DA counts for unified Chrome / App Launcher. To enable 7DA counts for App Launcher, the following is needed: - On execution, App Launcher sets "dr" to "1" in its DidRun key, i.e.: HKCU\Software\Google\Update\ClientState\{FDA71E6F-AC4C-4a00-8B70-9958A68906BF}\dr - "Present version" key is set for the App Launcher's clients (at user/system level): (HKCU\HKLM)\Software\Google\Update\Clients\{FDA71E6F-AC4C-4a00-8B70-9958A68906BF}\pv - Google Update is installed. Ultimately we wish to rely on https://chromiumcodereview.appspot.com/14031025 to perform the proper migration. However, there is need to get the 7DA data ASAP, so this CL implements a quick fix to set the "dr" key. Specifically: - In app_list_controller_win.cc: Removed check for presence of obsolete App Launcher artifacts, so the "dr" key (in user-level) is written whenever App Launcher runs. - In install_worker.cc: If multi-install Chrome is installed, *in the absence* of the deprecated App Launcher (needed for backward compatiblity), create "shadow" App Launcher key for "pv". - In uninstall.cc: Cleanup this shadow App Launcher key. Again, backward compatibility is support people who have the old stand-alone App Launcher, before we land the real fix 14031025. BUG=233295 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=199123

Patch Set 1 #

Total comments: 8

Patch Set 2 : Fixing problems on how installation data are obtained. #

Total comments: 7

Patch Set 3 : Comment fixes; removed useless check. #

Total comments: 2

Patch Set 4 : Fixing uninstall logic w.r.t. level of Chrome vs. legacy App Launcher. #

Patch Set 5 : Fixing mix-up between InstallationState and InstallationLevel. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -8 lines) Patch
M chrome/browser/ui/views/app_list/app_list_controller_win.cc View 1 2 2 chunks +22 lines, -8 lines 0 comments Download
M chrome/installer/setup/install_worker.cc View 1 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/installer/setup/uninstall.cc View 1 2 3 4 2 chunks +21 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
huangs
Previously I thought this would be too much trouble, but I learned from grt@ that ...
7 years, 7 months ago (2013-05-07 20:24:57 UTC) #1
grt (UTC plus 2)
https://codereview.chromium.org/14711006/diff/1/chrome/browser/ui/views/app_list/app_list_controller_win.cc File chrome/browser/ui/views/app_list/app_list_controller_win.cc (right): https://codereview.chromium.org/14711006/diff/1/chrome/browser/ui/views/app_list/app_list_controller_win.cc#newcode160 chrome/browser/ui/views/app_list/app_list_controller_win.cc:160: false /* user-level */); "launcher_state == chrome_launcher_support::INSTALLED_AT_SYSTEM_LEVEL" was correct. ...
7 years, 7 months ago (2013-05-07 20:52:02 UTC) #2
grt (UTC plus 2)
https://codereview.chromium.org/14711006/diff/1/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://codereview.chromium.org/14711006/diff/1/chrome/installer/setup/uninstall.cc#newcode1238 chrome/installer/setup/uninstall.cc:1238: if (original_state.GetProductState(false, On 2013/05/07 20:52:02, grt wrote: > I ...
7 years, 7 months ago (2013-05-07 20:57:30 UTC) #3
huangs
My main uncertainty is, right now I only limit the feature to multi-install Chrome. Therefore ...
7 years, 7 months ago (2013-05-08 01:16:53 UTC) #4
huangs
Basic goals: - After install, "shadow" App Launcher should/should not appear. - After running "chrome.exe ...
7 years, 7 months ago (2013-05-08 01:22:02 UTC) #5
benwells
I'm gonna go ahead and rubber stamp lgtm the changes to app_list_controller_win. grt: can you ...
7 years, 7 months ago (2013-05-08 02:09:34 UTC) #6
huangs
Thanks! If by normal you mean {Stable, Beta, Dev. channel}, then this should be fine.
7 years, 7 months ago (2013-05-08 02:47:40 UTC) #7
benwells
On 2013/05/08 02:47:40, huangs1 wrote: > Thanks! If by normal you mean {Stable, Beta, Dev. ...
7 years, 7 months ago (2013-05-08 04:40:38 UTC) #8
grt (UTC plus 2)
https://codereview.chromium.org/14711006/diff/16001/chrome/browser/ui/views/app_list/app_list_controller_win.cc File chrome/browser/ui/views/app_list/app_list_controller_win.cc (right): https://codereview.chromium.org/14711006/diff/16001/chrome/browser/ui/views/app_list/app_list_controller_win.cc#newcode162 chrome/browser/ui/views/app_list/app_list_controller_win.cc:162: BrowserDistribution* chrome_binaries_dist = As discussed, please add a comment ...
7 years, 7 months ago (2013-05-08 19:36:09 UTC) #9
huangs
Filed http://crbug.com/239163 for the edge case. PTAL. https://chromiumcodereview.appspot.com/14711006/diff/16001/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://chromiumcodereview.appspot.com/14711006/diff/16001/chrome/installer/setup/uninstall.cc#newcode1237 chrome/installer/setup/uninstall.cc:1237: // Remove ...
7 years, 7 months ago (2013-05-08 20:17:59 UTC) #10
grt (UTC plus 2)
https://chromiumcodereview.appspot.com/14711006/diff/29001/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://chromiumcodereview.appspot.com/14711006/diff/29001/chrome/installer/setup/uninstall.cc#newcode1241 chrome/installer/setup/uninstall.cc:1241: bool has_legacy_app_launcher = make this true only if the ...
7 years, 7 months ago (2013-05-08 20:31:04 UTC) #11
huangs
PTAL. https://chromiumcodereview.appspot.com/14711006/diff/29001/chrome/installer/setup/uninstall.cc File chrome/installer/setup/uninstall.cc (right): https://chromiumcodereview.appspot.com/14711006/diff/29001/chrome/installer/setup/uninstall.cc#newcode1241 chrome/installer/setup/uninstall.cc:1241: bool has_legacy_app_launcher = On 2013/05/08 20:31:04, grt wrote: ...
7 years, 7 months ago (2013-05-08 20:38:57 UTC) #12
grt (UTC plus 2)
lgtm
7 years, 7 months ago (2013-05-08 20:46:18 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/huangs@chromium.org/14711006/38001
7 years, 7 months ago (2013-05-08 22:49:13 UTC) #14
commit-bot: I haz the power
7 years, 7 months ago (2013-05-09 05:30:10 UTC) #15
Message was sent while issue was closed.
Change committed as 199123

Powered by Google App Engine
This is Rietveld 408576698