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

Issue 2102019: Invalid URLs are no longer mangled when reopening the Options window (Closed)

Created:
10 years, 7 months ago by weinjared
Modified:
9 years, 7 months ago
CC:
chromium-reviews, ben+cc_chromium.org
Visibility:
Public.

Description

Invalid URLs are no longer mangled when reopening the Options window. If the homepage URL is changed to an invalid URL, the homepage preference is swapped to a blank URL and NTP is shown. BUG=40996 TEST=Set homepage to http://www.google.com, close Chromium, restart Chromium and see homepage set to http://www.google.com. Set homepage to http://, close Chromium, restart Chromium and see homepage set to New Tab Page. Patch by Jared Wein <weinjared@gmail.com>; Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48270

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Total comments: 4

Patch Set 6 : '' #

Total comments: 3

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Total comments: 1

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -30 lines) Patch
M AUTHORS View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/cocoa/preferences_window_controller.mm View 4 5 6 7 8 9 2 chunks +11 lines, -12 lines 0 comments Download
M chrome/browser/gtk/options/general_page_gtk.h View 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/browser/gtk/options/general_page_gtk.cc View 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/views/options/general_page_view.h View 6 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/views/options/general_page_view.cc View 1 2 3 4 5 6 3 chunks +12 lines, -10 lines 0 comments Download

Messages

Total messages: 44 (0 generated)
weinjared
10 years, 7 months ago (2010-05-23 07:14:56 UTC) #1
weinjared
On 2010/05/23 07:14:56, weinjared wrote: > The first two patch sets are due to my ...
10 years, 7 months ago (2010-05-23 07:16:54 UTC) #2
Mohamed Mansour
http://codereview.chromium.org/2102019/diff/6001/7002 File chrome/browser/views/options/general_page_view.cc (right): http://codereview.chromium.org/2102019/diff/6001/7002#newcode291 chrome/browser/views/options/general_page_view.cc:291: if (GURL(url_string).is_valid()) { nit: remove the curly brackets since ...
10 years, 7 months ago (2010-05-23 08:02:04 UTC) #3
weinjared
On 2010/05/23 08:02:04, Mohamed Mansour wrote: > http://codereview.chromium.org/2102019/diff/6001/7002 > File chrome/browser/views/options/general_page_view.cc (right): > > http://codereview.chromium.org/2102019/diff/6001/7002#newcode291 ...
10 years, 7 months ago (2010-05-23 13:22:54 UTC) #4
Finnur
http://codereview.chromium.org/2102019/diff/6001/7002 File chrome/browser/views/options/general_page_view.cc (right): http://codereview.chromium.org/2102019/diff/6001/7002#newcode294 chrome/browser/views/options/general_page_view.cc:294: homepage_.SetValue(L""); I wonder if we should in the else ...
10 years, 7 months ago (2010-05-23 15:45:13 UTC) #5
Peter Kasting
This patch is the wrong fix. The right fix is to not update the pref ...
10 years, 7 months ago (2010-05-23 16:04:45 UTC) #6
Finnur
Yeah, that's probably the best way forward...
10 years, 7 months ago (2010-05-23 16:10:58 UTC) #7
Nico
On OS x, the preferred needs to be updated immediately, so this might still be ...
10 years, 7 months ago (2010-05-23 17:05:37 UTC) #8
Mohamed Mansour
Yea, in Windows, everything in options is updated immediately, so I don't know how the ...
10 years, 7 months ago (2010-05-23 17:14:10 UTC) #9
Peter Kasting
On 2010/05/23 16:04:45, Peter Kasting wrote: > This patch is the wrong fix. > > ...
10 years, 7 months ago (2010-05-23 19:32:04 UTC) #10
tfarina
Please, could you fix the linux side as well?
10 years, 7 months ago (2010-05-23 20:21:04 UTC) #11
Peter Kasting
On 2010/05/23 20:21:04, tfarina wrote: > Please, could you fix the linux side as well? ...
10 years, 7 months ago (2010-05-23 23:27:51 UTC) #12
weinjared
On 2010/05/23 23:27:51, Peter Kasting wrote: > On 2010/05/23 20:21:04, tfarina wrote: > > Please, ...
10 years, 7 months ago (2010-05-24 01:48:12 UTC) #13
tfarina
http://codereview.chromium.org/2102019/diff/19001/13004 File chrome/browser/gtk/options/general_page_gtk.cc (right): http://codereview.chromium.org/2102019/diff/19001/13004#newcode643 chrome/browser/gtk/options/general_page_gtk.cc:643: homepage_.SetValue(std::wstring()); no, this should be in SetHomepage, which already ...
10 years, 7 months ago (2010-05-24 02:27:53 UTC) #14
weinjared
On 2010/05/24 02:27:53, tfarina wrote: > File chrome/browser/gtk/options/general_page_gtk.cc (right): > no, this should be in ...
10 years, 7 months ago (2010-05-24 02:37:40 UTC) #15
Mohamed Mansour
Thanks Jared! Everyone, we met with Jared at I/O and was really interested in contributing, ...
10 years, 7 months ago (2010-05-24 02:51:02 UTC) #16
weinjared
I've vaguely familiar with Mac (participate in obj-c code reviews at work) and the linux ...
10 years, 7 months ago (2010-05-24 02:54:48 UTC) #17
weinjared
On 2010/05/24 02:51:02, Mohamed Mansour wrote: > Follow same approach as Linux/Windows (where we remove ...
10 years, 7 months ago (2010-05-24 03:05:29 UTC) #18
Mohamed Mansour
On 2010/05/24 03:05:29, weinjared wrote: > Making this change would mean that if the homepage ...
10 years, 7 months ago (2010-05-24 03:14:38 UTC) #19
tfarina
On 2010/05/24 03:14:38, Mohamed Mansour wrote: > On 2010/05/24 03:05:29, weinjared wrote: > > Making ...
10 years, 7 months ago (2010-05-24 03:18:54 UTC) #20
Finnur
I´m still worried about what conditions can trigger an invalid URL, causing the homepage to ...
10 years, 7 months ago (2010-05-24 04:53:26 UTC) #21
weinjared
On 2010/05/24 04:53:26, Finnur wrote: > Have you considered what I mentioned in my first ...
10 years, 7 months ago (2010-05-24 11:11:12 UTC) #22
Finnur
> Would we only want to support standard schemes then Yes, http, ftp, and https. ...
10 years, 7 months ago (2010-05-24 14:55:50 UTC) #23
Peter Kasting
I am strongly opposed to Finnur's suggestion. This should be checked in as-is. LGTM on ...
10 years, 7 months ago (2010-05-24 17:43:32 UTC) #24
Finnur
I'll defer to Peter. I don't have a strong opinion on this.
10 years, 7 months ago (2010-05-24 17:46:03 UTC) #25
Peter Kasting
My main concern is consistency. If we check for "http://", then if the user just ...
10 years, 7 months ago (2010-05-24 18:39:37 UTC) #26
Finnur
How about this: Do what you currently do, but only set it to blank if ...
10 years, 7 months ago (2010-05-24 19:28:29 UTC) #27
Finnur
That was supposed to read: if the url _is_ invalid. On 2010/05/24 19:28:29, Finnur wrote: ...
10 years, 7 months ago (2010-05-24 19:29:00 UTC) #28
Peter Kasting
Did you mean "host _is_ null"? I still don't know whether this is a great ...
10 years, 7 months ago (2010-05-24 19:34:43 UTC) #29
Finnur
> Did you mean "host _is_ null"? Yes. Jeez, I can't type today. :/ if ...
10 years, 7 months ago (2010-05-24 19:55:15 UTC) #30
Peter Kasting
On Mon, May 24, 2010 at 12:55 PM, <finnur@chromium.org> wrote: > I think "http:", "http:/", ...
10 years, 7 months ago (2010-05-25 00:05:51 UTC) #31
weinjared
10 years, 7 months ago (2010-05-25 03:13:09 UTC) #32
Peter Kasting
LGTM. I'm sorry we've run you around so much on this patch. Normally we're a ...
10 years, 7 months ago (2010-05-25 03:19:45 UTC) #33
weinjared
10 years, 7 months ago (2010-05-25 03:28:15 UTC) #34
weinjared
Thanks pkasting. I've made the changes you recommended. I also updated some comments that I ...
10 years, 7 months ago (2010-05-25 03:29:44 UTC) #35
Finnur
LGTM
10 years, 7 months ago (2010-05-25 03:48:52 UTC) #36
Mohamed Mansour
LGTM, thanks for submitting your first patch :) Looking forward for more! I submitted this ...
10 years, 7 months ago (2010-05-25 04:14:01 UTC) #37
weinjared
On 2010/05/25 04:14:01, Mohamed Mansour wrote: > Did you sign the CLA (Committer license agreement)? ...
10 years, 7 months ago (2010-05-25 04:17:31 UTC) #38
weinjared
Sorry about the try-failure. Just did a gclient sync and also noticed that the general_page_gtk.h ...
10 years, 7 months ago (2010-05-25 04:37:54 UTC) #39
weinjared
The try build for the mac failed. I've noted the line that caused the failure ...
10 years, 7 months ago (2010-05-25 13:04:02 UTC) #40
weinjared
I have fixed the error with the mac build.
10 years, 7 months ago (2010-05-25 22:24:53 UTC) #41
weinjared
The try builds failed on Windows and Linux, but they look to be independent of ...
10 years, 7 months ago (2010-05-26 01:25:21 UTC) #42
Peter Kasting
On 2010/05/26 01:25:21, weinjared wrote: > The try builds failed on Windows and Linux, but ...
10 years, 7 months ago (2010-05-26 04:28:53 UTC) #43
Mohamed Mansour
10 years, 7 months ago (2010-05-26 13:24:01 UTC) #44
Patch committed! Thanks Jared! As Peter stated, we hope your next patching
experience goes more easily :) I am impressed you got your hands in the Chromium
source base after a couple days of I/O. Good job! Welcome to Chromium :)

Powered by Google App Engine
This is Rietveld 408576698