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

Issue 3342002: Allow download Chrome page to set Chrome as default even if it is not a new i... (Closed)

Created:
10 years, 3 months ago by Miranda Callahan
Modified:
9 years, 7 months ago
Reviewers:
huanr, kuchhal
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Allow download Chrome page to set Chrome as default even if it is not a new install. Read "make_default_for_user" preference from master_preferences file and set Chrome to default in installer if we are updating Chrome instead of installing a new version. The problem here is that now that we set the default browser preference from a web page, we are using master_preferences to communicate this desire to the browser. Because the user already has Chrome installed on his/her machine, the master_preferences file will not be written to their machine. Instead, we check for this preference in the installer itself, and set Chrome to be default for the user here. BUG=53656 TEST=Have Chrome installed on your machine, but *not* default browser. Run setup.exe to install a new version of Chrome, with a master_preferences file that includes the distribution preference "make_default_for_user":true. (This reflects what happens when the user downloads Chrome with the "make default" option checked). Chrome should be default browser. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58280

Patch Set 1 : '' #

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -1 line) Patch
M chrome/installer/setup/install.cc View 1 2 3 1 chunk +15 lines, -1 line 1 comment Download

Messages

Total messages: 15 (0 generated)
kuchhal
lgtm. http://codereview.chromium.org/3342002/diff/7001/8001 File chrome/installer/setup/install.cc (right): http://codereview.chromium.org/3342002/diff/7001/8001#newcode778 chrome/installer/setup/install.cc:778: &make_chrome_default); indent by two more spaces. http://codereview.chromium.org/3342002/diff/7001/8001#newcode794 chrome/installer/setup/install.cc:794: ...
10 years, 3 months ago (2010-09-01 23:22:33 UTC) #1
Miranda Callahan
http://codereview.chromium.org/3342002/diff/7001/8001 File chrome/installer/setup/install.cc (right): http://codereview.chromium.org/3342002/diff/7001/8001#newcode778 chrome/installer/setup/install.cc:778: &make_chrome_default); On 2010/09/01 23:22:33, kuchhal wrote: > indent by ...
10 years, 3 months ago (2010-09-01 23:28:51 UTC) #2
huanr
http://codereview.chromium.org/3342002/diff/7001/8001 File chrome/installer/setup/install.cc (right): http://codereview.chromium.org/3342002/diff/7001/8001#newcode786 chrome/installer/setup/install.cc:786: result == installer_util::INSTALL_REPAIRED) { Most likely the result will ...
10 years, 3 months ago (2010-09-01 23:35:40 UTC) #3
Miranda Callahan
On 2010/09/01 23:35:40, huanr wrote: > http://codereview.chromium.org/3342002/diff/7001/8001 > File chrome/installer/setup/install.cc (right): > > http://codereview.chromium.org/3342002/diff/7001/8001#newcode786 > ...
10 years, 3 months ago (2010-09-01 23:38:33 UTC) #4
kuchhal
Are you talking about these three cases? HIGHER_VERSION_EXISTS, // Higher version of Chrome already exists ...
10 years, 3 months ago (2010-09-01 23:41:54 UTC) #5
Miranda Callahan
On 2010/09/01 23:41:54, kuchhal wrote: > Are you talking about these three cases? > > ...
10 years, 3 months ago (2010-09-01 23:45:23 UTC) #6
huanr
What is the result code if a user with version X downloads and installs version ...
10 years, 3 months ago (2010-09-01 23:47:03 UTC) #7
kuchhal
> What is the result code if a user with version X downloads and installs ...
10 years, 3 months ago (2010-09-01 23:49:46 UTC) #8
Miranda Callahan
On 2010/09/01 23:45:23, Miranda Callahan wrote: > On 2010/09/01 23:41:54, kuchhal wrote: > > Are ...
10 years, 3 months ago (2010-09-01 23:52:53 UTC) #9
Miranda Callahan
On 2010/09/01 23:49:46, kuchhal wrote: > > What is the result code if a user ...
10 years, 3 months ago (2010-09-01 23:54:08 UTC) #10
Miranda Callahan
On 2010/09/01 23:54:08, Miranda Callahan wrote: > On 2010/09/01 23:49:46, kuchhal wrote: > > > ...
10 years, 3 months ago (2010-09-02 00:02:07 UTC) #11
kuchhal
lgtm. But just to point out something that I just realized. IN_USE_UPDATED would be an ...
10 years, 3 months ago (2010-09-02 00:08:19 UTC) #12
Miranda Callahan
Hmm. What you say scares me. I think that because this patch is going into ...
10 years, 3 months ago (2010-09-02 00:14:23 UTC) #13
kuchhal
That certainly makes the change relatively safer. so it sounds fine to me. On Wed, ...
10 years, 3 months ago (2010-09-02 00:18:37 UTC) #14
huanr
10 years, 3 months ago (2010-09-02 02:30:12 UTC) #15
http://codereview.chromium.org/3342002/diff/18001/19001
File chrome/installer/setup/install.cc (right):

http://codereview.chromium.org/3342002/diff/18001/19001#newcode783
chrome/installer/setup/install.cc:783: result == installer_util::IN_USE_UPDATED
||
Did you update the CL? I still see IN_USE_UPDATED.

Other than that, lgtm

Powered by Google App Engine
This is Rietveld 408576698