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

Issue 12094053: [win] Add utility function to find out if chrome is installed. (Closed)

Created:
7 years, 10 months ago by benwells
Modified:
7 years, 10 months ago
CC:
chromium-reviews, grt+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

[win] Add utility function to find out if chrome is installed. The app launcher can be used with or without chrome installed. This function lets the app launcher find out if chrome is installed. BUG=159733 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180329

Patch Set 1 #

Patch Set 2 : Use Clients key #

Patch Set 3 : Tidy up #

Total comments: 14

Patch Set 4 : comments #

Total comments: 2

Patch Set 5 : Nit #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -0 lines) Patch
M chrome/installer/launcher_support/chrome_launcher_support.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/installer/launcher_support/chrome_launcher_support.cc View 1 2 3 4 3 chunks +21 lines, -0 lines 2 comments Download

Messages

Total messages: 21 (0 generated)
benwells
erikwright: this is as we discussed a week or so ago. Note when I uninstall ...
7 years, 10 months ago (2013-01-30 08:06:35 UTC) #1
erikwright (departed)
On 2013/01/30 08:06:35, benwells wrote: > erikwright: this is as we discussed a week or ...
7 years, 10 months ago (2013-01-30 14:53:48 UTC) #2
benwells
On 2013/01/30 14:53:48, erikwright wrote: > On 2013/01/30 08:06:35, benwells wrote: > > erikwright: this ...
7 years, 10 months ago (2013-01-31 00:02:13 UTC) #3
benwells
Using clients key...
7 years, 10 months ago (2013-01-31 01:10:59 UTC) #4
erikwright (departed)
LGTM.
7 years, 10 months ago (2013-01-31 02:55:23 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/12094053/2003
7 years, 10 months ago (2013-01-31 02:59:12 UTC) #6
commit-bot: I haz the power
Presubmit check for 12094053-2003 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 10 months ago (2013-01-31 02:59:14 UTC) #7
benwells
+gab for owners review
7 years, 10 months ago (2013-01-31 03:05:22 UTC) #8
gab
This whole file is full of "#ifndef OFFICIAL_BUILD"s; not a fan, is this only to ...
7 years, 10 months ago (2013-01-31 15:09:45 UTC) #9
grt (UTC plus 2)
https://codereview.chromium.org/12094053/diff/2003/chrome/installer/launcher_support/chrome_launcher_support.cc File chrome/installer/launcher_support/chrome_launcher_support.cc (right): https://codereview.chromium.org/12094053/diff/2003/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode88 chrome/installer/launcher_support/chrome_launcher_support.cc:88: return reg_key.Open(root_key, subkey.c_str(), the product is only installed if ...
7 years, 10 months ago (2013-01-31 15:16:27 UTC) #10
grt (UTC plus 2)
https://codereview.chromium.org/12094053/diff/2003/chrome/installer/launcher_support/chrome_launcher_support.cc File chrome/installer/launcher_support/chrome_launcher_support.cc (right): https://codereview.chromium.org/12094053/diff/2003/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode88 chrome/installer/launcher_support/chrome_launcher_support.cc:88: return reg_key.Open(root_key, subkey.c_str(), On 2013/01/31 15:16:27, grt wrote: > ...
7 years, 10 months ago (2013-01-31 15:18:21 UTC) #11
erikwright (departed)
https://codereview.chromium.org/12094053/diff/2003/chrome/installer/launcher_support/chrome_launcher_support.cc File chrome/installer/launcher_support/chrome_launcher_support.cc (right): https://codereview.chromium.org/12094053/diff/2003/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode203 chrome/installer/launcher_support/chrome_launcher_support.cc:203: return true; On 2013/01/31 15:09:45, gab wrote: > We ...
7 years, 10 months ago (2013-01-31 15:20:00 UTC) #12
gab
https://codereview.chromium.org/12094053/diff/2003/chrome/installer/launcher_support/chrome_launcher_support.cc File chrome/installer/launcher_support/chrome_launcher_support.cc (right): https://codereview.chromium.org/12094053/diff/2003/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode203 chrome/installer/launcher_support/chrome_launcher_support.cc:203: return true; On 2013/01/31 15:20:00, erikwright wrote: > On ...
7 years, 10 months ago (2013-01-31 18:05:40 UTC) #13
benwells
https://codereview.chromium.org/12094053/diff/2003/chrome/installer/launcher_support/chrome_launcher_support.cc File chrome/installer/launcher_support/chrome_launcher_support.cc (right): https://codereview.chromium.org/12094053/diff/2003/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode88 chrome/installer/launcher_support/chrome_launcher_support.cc:88: return reg_key.Open(root_key, subkey.c_str(), On 2013/01/31 15:18:21, grt wrote: > ...
7 years, 10 months ago (2013-02-01 01:16:54 UTC) #14
gab
lgtm for this change, but I'm really not a fan of this file; please highly ...
7 years, 10 months ago (2013-02-01 02:00:33 UTC) #15
benwells
https://codereview.chromium.org/12094053/diff/12001/chrome/installer/launcher_support/chrome_launcher_support.cc File chrome/installer/launcher_support/chrome_launcher_support.cc (right): https://codereview.chromium.org/12094053/diff/12001/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode91 chrome/installer/launcher_support/chrome_launcher_support.cc:91: reg_key.HasValue(kRegVersionField); On 2013/02/01 02:00:33, gab wrote: > nit: I ...
7 years, 10 months ago (2013-02-01 03:40:35 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/12094053/9003
7 years, 10 months ago (2013-02-01 03:54:36 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/benwells@chromium.org/12094053/9003
7 years, 10 months ago (2013-02-03 21:27:37 UTC) #18
commit-bot: I haz the power
Change committed as 180329
7 years, 10 months ago (2013-02-04 00:48:28 UTC) #19
gab
https://chromiumcodereview.appspot.com/12094053/diff/9003/chrome/installer/launcher_support/chrome_launcher_support.cc File chrome/installer/launcher_support/chrome_launcher_support.cc (right): https://chromiumcodereview.appspot.com/12094053/diff/9003/chrome/installer/launcher_support/chrome_launcher_support.cc#newcode91 chrome/installer/launcher_support/chrome_launcher_support.cc:91: reg_key.HasValue(kRegVersionField); I just thought of something... I think the ...
7 years, 10 months ago (2013-02-04 16:49:31 UTC) #20
grt (UTC plus 2)
7 years, 10 months ago (2013-02-04 18:47:45 UTC) #21
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12094053/diff/9003/chrome/installer/la...
File chrome/installer/launcher_support/chrome_launcher_support.cc (right):

https://chromiumcodereview.appspot.com/12094053/diff/9003/chrome/installer/la...
chrome/installer/launcher_support/chrome_launcher_support.cc:91:
reg_key.HasValue(kRegVersionField);
On 2013/02/04 16:49:31, gab wrote:
> I just thought of something... I think the installer doesn't drop these
registry
> keys if Google Update is not installed... (i.e., this could be a pain for
> developers that don't have any Google products (drive, canary, etc.) on a test
> machine, but do have a local developer chrome installed which will not be
> detected by this...).

Chrome's installer unconditionally writes "pv" (it doesn't check for the
presence of Google Update), so I think it's okay. Good lookin' out.

Powered by Google App Engine
This is Rietveld 408576698