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

Issue 11127002: Move "default for protocol" probing logic out of shell_integration_win.cc into shell_util.cc. (Closed)

Created:
8 years, 2 months ago by gab
Modified:
5 years, 2 months ago
CC:
chromium-reviews, grt+watch_chromium.org, grt (UTC plus 2), chrome-win8-eng_google.com
Visibility:
Public.

Description

Move "default for protocol" probing logic out of shell_integration_win.cc into shell_util.cc. This will allow us to probe for default from the installer (as the installer cannot otherwise call chrome code); this is already the way it is factored to "make Chrome default" and now will be factored the same way for "is Chrome default". BUG=154806 TEST=Chrome knows whether it's default or not. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161948

Patch Set 1 : #

Patch Set 2 : +comment #

Total comments: 10

Patch Set 3 : add DCHECK #

Patch Set 4 : merge up to r160877 #

Patch Set 5 : better order in enum #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -171 lines) Patch
M chrome/browser/shell_integration_win.cc View 1 2 4 chunks +18 lines, -171 lines 3 comments Download
M chrome/installer/util/shell_util.h View 1 2 3 4 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/installer/util/shell_util.cc View 1 2 3 3 chunks +175 lines, -0 lines 3 comments Download

Messages

Total messages: 25 (2 generated)
gab
8 years, 2 months ago (2012-10-12 19:49:53 UTC) #1
grt (UTC plus 2)
just passing through... http://codereview.chromium.org/11127002/diff/4001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): http://codereview.chromium.org/11127002/diff/4001/chrome/browser/shell_integration_win.cc#newcode249 chrome/browser/shell_integration_win.cc:249: return ShellIntegration::UNKNOWN_DEFAULT_WEB_CLIENT; DCHECK for the UNKNOWN ...
8 years, 2 months ago (2012-10-12 19:59:35 UTC) #2
gab
See comments below. http://codereview.chromium.org/11127002/diff/4001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): http://codereview.chromium.org/11127002/diff/4001/chrome/browser/shell_integration_win.cc#newcode249 chrome/browser/shell_integration_win.cc:249: return ShellIntegration::UNKNOWN_DEFAULT_WEB_CLIENT; On 2012/10/12 19:59:35, grt ...
8 years, 2 months ago (2012-10-12 20:35:11 UTC) #3
grt (UTC plus 2)
http://codereview.chromium.org/11127002/diff/4001/chrome/installer/util/shell_util.h File chrome/installer/util/shell_util.h (right): http://codereview.chromium.org/11127002/diff/4001/chrome/installer/util/shell_util.h#newcode37 chrome/installer/util/shell_util.h:37: NOT_DEFAULT = 0, On 2012/10/12 20:35:12, gab wrote: > ...
8 years, 2 months ago (2012-10-15 13:44:33 UTC) #4
robertshield
LGTM, please address Greg's comments first.
8 years, 2 months ago (2012-10-15 13:58:46 UTC) #5
gab
sgtm, done. http://codereview.chromium.org/11127002/diff/4001/chrome/installer/util/shell_util.h File chrome/installer/util/shell_util.h (right): http://codereview.chromium.org/11127002/diff/4001/chrome/installer/util/shell_util.h#newcode37 chrome/installer/util/shell_util.h:37: NOT_DEFAULT = 0, On 2012/10/15 13:44:33, grt ...
8 years, 2 months ago (2012-10-15 14:20:39 UTC) #6
grt (UTC plus 2)
lgtm
8 years, 2 months ago (2012-10-15 14:25:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/11127002/16001
8 years, 2 months ago (2012-10-15 14:29:59 UTC) #8
commit-bot: I haz the power
Presubmit check for 11127002-16001 failed and returned exit status 1. Running presubmit commit checks ...
8 years, 2 months ago (2012-10-15 14:30:02 UTC) #9
gab
+jhawkins for chrome/browser/shell_integration_win.cc OWNER approval. Thanks! Gab
8 years, 2 months ago (2012-10-15 14:33:04 UTC) #10
gab
+Nico as jhawkins doesn't appear to be in this morning and this is the first ...
8 years, 2 months ago (2012-10-15 16:54:36 UTC) #11
Nico
lgtm I didn't check that the moved code didn't change. http://codereview.chromium.org/11127002/diff/16001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): http://codereview.chromium.org/11127002/diff/16001/chrome/browser/shell_integration_win.cc#newcode250 ...
8 years, 2 months ago (2012-10-15 17:09:24 UTC) #12
gab
Thanks, see comment below. http://codereview.chromium.org/11127002/diff/16001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): http://codereview.chromium.org/11127002/diff/16001/chrome/browser/shell_integration_win.cc#newcode250 chrome/browser/shell_integration_win.cc:250: return ShellIntegration::UNKNOWN_DEFAULT_WEB_CLIENT; On 2012/10/15 17:09:24, ...
8 years, 2 months ago (2012-10-15 17:45:33 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/11127002/16001
8 years, 2 months ago (2012-10-15 17:46:27 UTC) #14
Nico
On 2012/10/15 17:45:33, gab wrote: > Thanks, see comment below. > > http://codereview.chromium.org/11127002/diff/16001/chrome/browser/shell_integration_win.cc > File ...
8 years, 2 months ago (2012-10-15 17:47:43 UTC) #15
scottmg
http://codereview.chromium.org/11127002/diff/16001/chrome/browser/shell_integration_win.cc File chrome/browser/shell_integration_win.cc (right): http://codereview.chromium.org/11127002/diff/16001/chrome/browser/shell_integration_win.cc#newcode250 chrome/browser/shell_integration_win.cc:250: return ShellIntegration::UNKNOWN_DEFAULT_WEB_CLIENT; On 2012/10/15 17:45:33, gab wrote: > On ...
8 years, 2 months ago (2012-10-15 18:04:23 UTC) #16
commit-bot: I haz the power
List of reviewers changed. scottmg@chromium.org did a drive-by without LGTM'ing!
8 years, 2 months ago (2012-10-15 20:38:09 UTC) #17
scottmg
On 2012/10/15 20:38:09, I haz the power (commit-bot) wrote: > List of reviewers changed. mailto:scottmg@chromium.org ...
8 years, 2 months ago (2012-10-15 20:39:16 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/11127002/16001
8 years, 2 months ago (2012-10-15 20:39:33 UTC) #19
commit-bot: I haz the power
Change committed as 161948
8 years, 2 months ago (2012-10-15 20:39:50 UTC) #20
M-A Ruel
https://chromiumcodereview.appspot.com/11127002/diff/16001/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://chromiumcodereview.appspot.com/11127002/diff/16001/chrome/installer/util/shell_util.cc#newcode1117 chrome/installer/util/shell_util.cc:1117: return ShellUtil::UNKNOWN_DEFAULT; This code is incorrect; it's possible that ...
5 years, 2 months ago (2015-10-14 20:08:04 UTC) #22
gab
https://chromiumcodereview.appspot.com/11127002/diff/16001/chrome/installer/util/shell_util.cc File chrome/installer/util/shell_util.cc (right): https://chromiumcodereview.appspot.com/11127002/diff/16001/chrome/installer/util/shell_util.cc#newcode1117 chrome/installer/util/shell_util.cc:1117: return ShellUtil::UNKNOWN_DEFAULT; On 2015/10/14 20:08:04, M-A Ruel wrote: > ...
5 years, 2 months ago (2015-10-14 20:32:07 UTC) #23
Mark P
5 years, 2 months ago (2015-10-14 22:07:19 UTC) #25
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/11127002/diff/16001/chrome/installer/u...
File chrome/installer/util/shell_util.cc (right):

https://chromiumcodereview.appspot.com/11127002/diff/16001/chrome/installer/u...
chrome/installer/util/shell_util.cc:1117: return ShellUtil::UNKNOWN_DEFAULT;
On 2015/10/14 20:32:07, gab wrote:
> On 2015/10/14 20:08:04, M-A Ruel wrote:
> > This code is incorrect; it's possible that a path has no short name version
> when
> > the path was created with \\?\ prefix. This is now the case with isolated
> > testing. In this case, it should fallback to the long form.
> 
> This CL moved this code from shell_integration_win.cc; so I guess it's been
> incorrect forever. Happy to review a fix.

Filed bug
https://code.google.com/p/chromium/issues/detail?id=543306
for follow-up.

Powered by Google App Engine
This is Rietveld 408576698