Hide the main window when Set-As-Default dialog is present.
This affect startup sequences only.
BUG=134430
TEST=The dialog on win8 should appear without the main window. If the user chooses not to make Chrome default, it should continue to desktop Chrome.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=150936
Hi, I would appreciate if you could review this one. M.
8 years, 5 months ago
(2012-07-05 17:41:30 UTC)
#1
Hi, I would appreciate if you could review this one.
M.
grt (UTC plus 2)
i'm not fit to review set_as_default_browser_ui.cc. otherwise, see comments below. https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/startup/default_browser_prompt_win.cc File chrome/browser/ui/startup/default_browser_prompt_win.cc (right): https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/startup/default_browser_prompt_win.cc#newcode89 ...
8 years, 5 months ago
(2012-07-05 20:08:47 UTC)
#2
i'm not fit to review set_as_default_browser_ui.cc. otherwise, see comments
below.
https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/s...
File chrome/browser/ui/startup/default_browser_prompt_win.cc (right):
https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/s...
chrome/browser/ui/startup/default_browser_prompt_win.cc:89:
(ShellIntegration::IsDefaultBrowser() ==
please swap the CanSetAsDefaultBrowser and IsDefaultBrowser portions of this
logic so that the cheap test is performed before the expensive test. actually,
CanSetAsDefaultBrowser is probably even cheaper than the prefs lookup, so might
as well move it before that one, too.
https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/s...
File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right):
https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/s...
chrome/browser/ui/startup/startup_browser_creator_impl.cc:723: bool as_first_run
= is_first_run_ ||
as discussed in person, i think it's cleaner to move this policy logic out into
ChromeBrowserMainParts::PreCreateThreadsImpl within the if (is_first_run_) block
so that some sort of "Start Hidden" bit is flipped on the creator when the
conditions are right for such. then this can become more like:
if (!browser_creator_->ShouldStartHidden()) {
...
}
cpu_(ooo_6.6-7.5)
http://codereview.chromium.org/10696093/diff/4003/chrome/browser/ui/webui/set_as_default_browser_ui.cc File chrome/browser/ui/webui/set_as_default_browser_ui.cc (right): http://codereview.chromium.org/10696093/diff/4003/chrome/browser/ui/webui/set_as_default_browser_ui.cc#newcode181 chrome/browser/ui/webui/set_as_default_browser_ui.cc:181: it != BrowserList::end(); ++it) { iterating over the browsers... ...
8 years, 5 months ago
(2012-07-06 23:30:47 UTC)
#3
apologies for the delay, this slipped under my radar http://codereview.chromium.org/10696093/diff/4003/chrome/browser/ui/webui/set_as_default_browser_ui.cc File chrome/browser/ui/webui/set_as_default_browser_ui.cc (right): http://codereview.chromium.org/10696093/diff/4003/chrome/browser/ui/webui/set_as_default_browser_ui.cc#newcode181 chrome/browser/ui/webui/set_as_default_browser_ui.cc:181: ...
8 years, 5 months ago
(2012-07-12 18:38:40 UTC)
#4
apologies for the delay, this slipped under my radar
http://codereview.chromium.org/10696093/diff/4003/chrome/browser/ui/webui/set...
File chrome/browser/ui/webui/set_as_default_browser_ui.cc (right):
http://codereview.chromium.org/10696093/diff/4003/chrome/browser/ui/webui/set...
chrome/browser/ui/webui/set_as_default_browser_ui.cc:181: it !=
BrowserList::end(); ++it) {
On 2012/07/06 23:30:47, cpu wrote:
> iterating over the browsers... Please ask jam@ if this is the way to go.
that's fine. once we have different contexts for metro/desktop, from this webui
page we should be able to extra the context and then use that to get to the
proper BrowserList.
motek.
Addressed comment. Since grt@ is vacationing, moved him to CC and added robertshield@ instead. https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/startup/default_browser_prompt_win.cc ...
8 years, 4 months ago
(2012-08-08 14:28:35 UTC)
#5
Addressed comment. Since grt@ is vacationing, moved him to CC and added
robertshield@ instead.
https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/s...
File chrome/browser/ui/startup/default_browser_prompt_win.cc (right):
https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/s...
chrome/browser/ui/startup/default_browser_prompt_win.cc:89:
(ShellIntegration::IsDefaultBrowser() ==
On 2012/07/05 20:08:47, grt wrote:
> please swap the CanSetAsDefaultBrowser and IsDefaultBrowser portions of this
> logic so that the cheap test is performed before the expensive test.
actually,
> CanSetAsDefaultBrowser is probably even cheaper than the prefs lookup, so
might
> as well move it before that one, too.
This part is gone altogether now. Changed above following the suggestion.
https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/s...
File chrome/browser/ui/startup/startup_browser_creator_impl.cc (right):
https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/s...
chrome/browser/ui/startup/startup_browser_creator_impl.cc:723: bool as_first_run
= is_first_run_ ||
On 2012/07/05 20:08:47, grt wrote:
> as discussed in person, i think it's cleaner to move this policy logic out
into
> ChromeBrowserMainParts::PreCreateThreadsImpl within the if (is_first_run_)
block
> so that some sort of "Start Hidden" bit is flipped on the creator when the
> conditions are right for such. then this can become more like:
>
> if (!browser_creator_->ShouldStartHidden()) {
> ...
> }
Moved to the creator, but as a simple setter/getter.
https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/w...
File chrome/browser/ui/webui/set_as_default_browser_ui.cc (right):
https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/w...
chrome/browser/ui/webui/set_as_default_browser_ui.cc:181: it !=
BrowserList::end(); ++it) {
On 2012/07/06 23:30:47, cpu wrote:
> iterating over the browsers... Please ask jam@ if this is the way to go.
Done.
https://chromiumcodereview.appspot.com/10696093/diff/4003/chrome/browser/ui/w...
chrome/browser/ui/webui/set_as_default_browser_ui.cc:181: it !=
BrowserList::end(); ++it) {
On 2012/07/12 18:38:40, John Abd-El-Malek wrote:
> On 2012/07/06 23:30:47, cpu wrote:
> > iterating over the browsers... Please ask jam@ if this is the way to go.
>
> that's fine. once we have different contexts for metro/desktop, from this
webui
> page we should be able to extra the context and then use that to get to the
> proper BrowserList.
Thank for for the comment. Keeping the iteration.
8 years, 4 months ago
(2012-08-08 19:55:36 UTC)
#7
https://chromiumcodereview.appspot.com/10696093/diff/13001/chrome/browser/ui/...
File chrome/browser/ui/webui/set_as_default_browser_ui.cc (right):
https://chromiumcodereview.appspot.com/10696093/diff/13001/chrome/browser/ui/...
chrome/browser/ui/webui/set_as_default_browser_ui.cc:209: ResponseDelegate {
On 2012/08/08 18:09:38, robertshield wrote:
> nit: indent, why private inheritance?
Habits. Changed to public.
https://chromiumcodereview.appspot.com/10696093/diff/13001/chrome/browser/ui/...
chrome/browser/ui/webui/set_as_default_browser_ui.cc:307: // In such case we
just carry on with normal chrome session. However, for
On 2012/08/08 18:09:38, robertshield wrote:
> nit: with normal -> with a normal
Done.
https://chromiumcodereview.appspot.com/10696093/diff/13001/chrome/browser/ui/...
chrome/browser/ui/webui/set_as_default_browser_ui.cc:317:
contents->GetView()->SetInitialFocus();
On 2012/08/08 18:09:38, robertshield wrote:
> question: do we want to set focus to each window in sequence, or do we want to
> set focus to just the last one?
Good question. I assumed the initial focus is basically location of input cursor
*in the window* and not the window selection. In that case, we should do it for
all existing windows (in practice there is only one at this point).
robertshield
lgtm
8 years, 4 months ago
(2012-08-08 20:12:19 UTC)
#8
Issue 10696093: Hide the main window when Set-As-Default dialog is present.
(Closed)
Created 8 years, 5 months ago by motek.
Modified 8 years, 4 months ago
Reviewers: cpu_(ooo_6.6-7.5), jam, robertshield, sky
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 32