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

Issue 4055004: Change window opening behavior for HtmlDialogTabContentsDelegate. (Closed)

Created:
10 years, 2 months ago by stevenjb
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org, John Gregg
Visibility:
Public.

Description

Change window opening behavior for HtmlDialogTabContentsDelegate. Also changed code to use existing Browser APIs and preserved the desired disposition. See issue for more info. BUG=http://code.google.com/p/chromium-os/issues/detail?id=8013 TEST=See issue Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=65298

Patch Set 1 #

Total comments: 5

Patch Set 2 : Change GetBrowser() to safely deal with disposition. #

Total comments: 3

Patch Set 3 : Rebased and moved Browser creation logic to browser.cc #

Patch Set 4 : Modified browser::Navigate to handle a NULL browser, added |profile| parameter. #

Patch Set 5 : Small fix. #

Patch Set 6 : Fix for unit tests. #

Patch Set 7 : Fix and add tests. #

Patch Set 8 : Rebased from trunk and fixed comments in HtmlDialogTabContentsDelegate #

Unified diffs Side-by-side diffs Delta from patch set Stats (+126 lines, -106 lines) Patch
M chrome/browser/browser_navigator.h View 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/browser_navigator.cc View 4 5 6 6 chunks +36 lines, -17 lines 0 comments Download
M chrome/browser/browser_navigator_browsertest.cc View 1 chunk +57 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/html_dialog_tab_contents_delegate.h View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc View 1 2 3 4 5 6 7 3 chunks +12 lines, -16 lines 0 comments Download
M chrome/browser/dom_ui/html_dialog_tab_contents_delegate_unittest.cc View 1 2 3 4 5 6 3 chunks +8 lines, -60 lines 0 comments Download
M chrome/browser/views/bookmark_bar_view.cc View 1 chunk +7 lines, -5 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
stevenjb
10 years, 2 months ago (2010-10-22 18:12:59 UTC) #1
sky
http://codereview.chromium.org/4055004/diff/1/2 File chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc (right): http://codereview.chromium.org/4055004/diff/1/2#newcode33 chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc:33: Browser* browser = BrowserList::FindBrowserWithProfile(profile_); You should you don't want ...
10 years, 2 months ago (2010-10-25 19:00:11 UTC) #2
stevenjb
http://codereview.chromium.org/4055004/diff/1/2 File chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc (right): http://codereview.chromium.org/4055004/diff/1/2#newcode33 chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc:33: Browser* browser = BrowserList::FindBrowserWithProfile(profile_); On 2010/10/25 19:00:11, sky wrote: ...
10 years, 2 months ago (2010-10-25 23:55:53 UTC) #3
Ben Goodger (Google)
I do want to look at this but have been OOO today, so I will ...
10 years, 1 month ago (2010-10-26 02:53:31 UTC) #4
sky
http://codereview.chromium.org/4055004/diff/5001/6001 File chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc (right): http://codereview.chromium.org/4055004/diff/5001/6001#newcode47 chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc:47: LOG(WARNING) << "Html dialog has no matching browser."; Can't ...
10 years, 1 month ago (2010-10-26 15:35:10 UTC) #5
Ben Goodger (Google)
http://codereview.chromium.org/4055004/diff/5001/6001 File chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc (right): http://codereview.chromium.org/4055004/diff/5001/6001#newcode57 chrome/browser/dom_ui/html_dialog_tab_contents_delegate.cc:57: Browser* browser = GetBrowser(&disposition); This is sufficiently complicated now ...
10 years, 1 month ago (2010-10-26 16:21:06 UTC) #6
stevenjb
So, browser::Navigate() is lovely, but for this use case I need it to work when ...
10 years, 1 month ago (2010-10-27 00:30:47 UTC) #7
sky
On 2010/10/27 00:30:47, Steven Bennetts wrote: > So, browser::Navigate() is lovely, but for this use ...
10 years, 1 month ago (2010-10-27 15:59:16 UTC) #8
Ben Goodger (Google)
I would love it if you can take a stab at providing support for NULL ...
10 years, 1 month ago (2010-10-27 23:38:42 UTC) #9
stevenjb
OK, finally had time to do this. I had to add a Profile parameter to ...
10 years, 1 month ago (2010-11-03 01:24:11 UTC) #10
stevenjb
I've fixed the HtmlDialogTabContentsDelegate tests and added some new ones to BrowserNavigatorTest. They appear to ...
10 years, 1 month ago (2010-11-03 22:13:31 UTC) #11
Ben Goodger (Google)
I really like what you've done here. LGTM. Thanks for cleaning this up!
10 years, 1 month ago (2010-11-05 16:39:42 UTC) #12
stevenjb
10 years, 1 month ago (2010-11-05 20:55:23 UTC) #13
On 2010/11/05 16:39:42, Ben Goodger wrote:
> I really like what you've done here. LGTM. Thanks for cleaning this up!

Thanks, my pleasure.

I rebased and updated some comments in HtmlDialogTabContentsDelegate that I
noticed were out of date.

Will push when the tree is open.

Powered by Google App Engine
This is Rietveld 408576698