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

Issue 363019: Fixes navigations chrome-internal: to actually show the NTP.... (Closed)

Created:
11 years, 1 month ago by Charlie Reis
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fixes navigations chrome-internal: to actually show the NTP. We now rewrite chrome-internal: (the old NTP URL) to chrome://newtab. Before, we were not properly showing the NTP for this URL, which caused some problems with further navigations (particularly form submissions) from that tab. Also, the default kHomePage string is now chrome://newtab instead of the outdated chrome-internal:. The logic in GeneralPageView is already designed to not show this URL in the preferences dialog. BUG=6564 TEST=NewTabUITest.ChromeInternalLoadsNTP Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31182

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -2 lines) Patch
M chrome/browser/browser.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/browser_url_handler.cc View 1 chunk +11 lines, -1 line 0 comments Download
MM chrome/browser/dom_ui/new_tab_ui_uitest.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Charlie Reis
Here's a first attempt at fixing chrome-internal: (and thus 6564). I think we should also ...
11 years, 1 month ago (2009-11-05 01:30:40 UTC) #1
Paweł Hajdan Jr.
Drive-by. http://codereview.chromium.org/363019/diff/4001/4003 File chrome/browser/dom_ui/new_tab_ui_uitest.cc (right): http://codereview.chromium.org/363019/diff/4001/4003#newcode59 Line 59: scoped_refptr<TabProxy> tab = window->GetActiveTab(); Could you tell ...
11 years, 1 month ago (2009-11-05 06:38:46 UTC) #2
Charlie Reis
Fixed Paweł's suggestion, and made the change to the default kHomePage pref. Ben, I'm adding ...
11 years, 1 month ago (2009-11-05 17:41:01 UTC) #3
Ben Goodger (Google)
So if I clear out the default home page box, it'll open the NTP? -Ben ...
11 years, 1 month ago (2009-11-05 23:11:18 UTC) #4
(Do not use) creis at google
By default, NTP is selected and the home page box looks blank. If you put ...
11 years, 1 month ago (2009-11-05 23:15:55 UTC) #5
Ben Goodger (Google)
11 years, 1 month ago (2009-11-05 23:18:48 UTC) #6
OK. LGTM then.

On Thu, Nov 5, 2009 at 3:15 PM, Charles Reis <creis@google.com> wrote:
> By default, NTP is selected and the home page box looks blank.
> If you put in a home page and later try to clear it out, it looks like th=
e
> home page you previously entered stays in effect. =C2=A0(This is true bot=
h before
> and after my changelist.)
> Charlie
>
> On Thu, Nov 5, 2009 at 3:10 PM, Ben Goodger (Google) <ben@chromium.org>
> wrote:
>>
>> So if I clear out the default home page box, it'll open the NTP?
>>
>> -Ben
>>
>> On Thu, Nov 5, 2009 at 9:41 AM, =C2=A0<creis@chromium.org> wrote:
>> > Fixed Pawe=C5=82's suggestion, and made the change to the default kHom=
ePage
>> > pref.
>> >
>> > Ben, I'm adding you to the review, since this updates a pref that is
>> > visible
>> > in
>> > the Options. =C2=A0We were showing "chrome-internal:" in the default h=
ome
>> > page
>> > box,
>> > and now we show nothing. =C2=A0(GeneralPageView is designed to not dis=
play
>> > the
>> > new
>> > tab page URL if kHomePage is set to it.) =C2=A0I think that was the in=
tended
>> > behavior, but let me know if it's wrong.
>> >
>> >
>> > http://codereview.chromium.org/363019/diff/4001/4003
>> > File chrome/browser/dom_ui/new_tab_ui_uitest.cc (right):
>> >
>> > http://codereview.chromium.org/363019/diff/4001/4003#newcode59
>> > Line 59: scoped_refptr<TabProxy> tab =3D window->GetActiveTab();
>> > On 2009/11/05 06:38:46, Pawe=C5=82 Hajdan Jr. wrote:
>> >>
>> >> Could you tell it to use the first tab instead? It's a more solid
>> >
>> > automation
>> >>
>> >> call.
>> >
>> > No problem!
>> >
>> > http://codereview.chromium.org/363019
>> >
>
>

Powered by Google App Engine
This is Rietveld 408576698