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

Issue 7049004: Normalize chrome://foo/ trailing slashes, ChromeURLHostEquals comparison, RIP dead consts. (Closed)

Created:
9 years, 7 months ago by msw
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, pam+watch_chromium.org
Visibility:
Public.

Description

Normalize chrome://foo/ trailing slashes (add a few). Add web_ui_util::ChromeURLHostEquals and update some checks. RIP kChromeUIAppLauncherURL (arv:r46266 - tfarina:r62866). RIP kDefaultOptionsSubPage (zelidrag:r56816 - estade:r76329/r76490). Remove unnecessary stdlib.h include and some extra spaces. BUG=55771 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86673

Patch Set 1 #

Patch Set 2 : Restore ShowAppInstalledAnimation. #

Patch Set 3 : Revert StartsWithASCII changes. #

Patch Set 4 : Replace StartsWithASCII with scheme and host matching. #

Total comments: 4

Patch Set 5 : Remove stdlib.h include. #

Total comments: 2

Patch Set 6 : Add chrome::IsChromeURL and update touched comparisons. #

Patch Set 7 : Add dummy GURL::SchemeIs for chrome_dll_nacl_win64. #

Total comments: 2

Patch Set 8 : Move and rename ChromeURLHostEquals. #

Patch Set 9 : Move ChromeURLHostEquals to web_ui_util. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -28 lines) Patch
M chrome/browser/extensions/extension_install_ui.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/tabs/tab_strip_model.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/browser_toolbar_gtk.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/BidiCheckerWebUITest.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/web_ui_util.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/web_ui_util.cc View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 6 7 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 6 7 4 chunks +11 lines, -14 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
msw
Please take a look or let me know who ought to. Thanks!
9 years, 7 months ago (2011-05-19 18:15:07 UTC) #1
Evan Stade
Are you sure the StartsWithASCII checks aren't intentional? i.e. chrome://newtab/foo might be a possible and ...
9 years, 7 months ago (2011-05-19 20:12:33 UTC) #2
Erik does not do reviews
+mpcomplete (aa is out) On Thu, May 19, 2011 at 11:15 AM, <msw@chromium.org> wrote: > ...
9 years, 7 months ago (2011-05-19 20:23:13 UTC) #3
msw
Good point, Evan; reverted. +mpcomplete. Please take a look.
9 years, 7 months ago (2011-05-19 20:36:57 UTC) #4
Evan Stade
I think the way to check if a tab is newtab would be url.SchemeIs(chrome::kChromeUIScheme) && ...
9 years, 7 months ago (2011-05-19 20:47:44 UTC) #5
Matt Perry
LGTM
9 years, 7 months ago (2011-05-19 22:35:26 UTC) #6
msw
On 2011/05/19 20:47:44, Evan Stade wrote: > I think the way to check if a ...
9 years, 7 months ago (2011-05-19 23:13:11 UTC) #7
tfarina
http://codereview.chromium.org/7049004/diff/3011/chrome/common/url_constants.cc File chrome/common/url_constants.cc (right): http://codereview.chromium.org/7049004/diff/3011/chrome/common/url_constants.cc#newcode5 chrome/common/url_constants.cc:5: #include "chrome/common/url_constants.h" thanks. http://codereview.chromium.org/7049004/diff/3011/chrome/common/url_constants.cc#newcode7 chrome/common/url_constants.cc:7: #include <stdlib.h> Is this ...
9 years, 7 months ago (2011-05-19 23:19:10 UTC) #8
msw
PTAL; thanks. http://codereview.chromium.org/7049004/diff/3011/chrome/common/url_constants.cc File chrome/common/url_constants.cc (right): http://codereview.chromium.org/7049004/diff/3011/chrome/common/url_constants.cc#newcode5 chrome/common/url_constants.cc:5: #include "chrome/common/url_constants.h" On 2011/05/19 23:19:10, tfarina wrote: ...
9 years, 7 months ago (2011-05-19 23:55:46 UTC) #9
Evan Stade
http://codereview.chromium.org/7049004/diff/1009/chrome/browser/ui/gtk/browser_toolbar_gtk.cc File chrome/browser/ui/gtk/browser_toolbar_gtk.cc (right): http://codereview.chromium.org/7049004/diff/1009/chrome/browser/ui/gtk/browser_toolbar_gtk.cc#newcode609 chrome/browser/ui/gtk/browser_toolbar_gtk.cc:609: bool url_is_newtab = url == GURL(chrome::kChromeUINewTabURL); sorry, I guess ...
9 years, 7 months ago (2011-05-20 05:18:42 UTC) #10
msw
PTAL. http://codereview.chromium.org/7049004/diff/1009/chrome/browser/ui/gtk/browser_toolbar_gtk.cc File chrome/browser/ui/gtk/browser_toolbar_gtk.cc (right): http://codereview.chromium.org/7049004/diff/1009/chrome/browser/ui/gtk/browser_toolbar_gtk.cc#newcode609 chrome/browser/ui/gtk/browser_toolbar_gtk.cc:609: bool url_is_newtab = url == GURL(chrome::kChromeUINewTabURL); On 2011/05/20 ...
9 years, 7 months ago (2011-05-22 01:12:12 UTC) #11
Evan Stade
LGTM with optional nit http://codereview.chromium.org/7049004/diff/9003/chrome/common/url_constants.h File chrome/common/url_constants.h (right): http://codereview.chromium.org/7049004/diff/9003/chrome/common/url_constants.h#newcode225 chrome/common/url_constants.h:225: bool IsChromeURL(const GURL& url, const ...
9 years, 7 months ago (2011-05-23 20:41:17 UTC) #12
msw
PTAL. http://codereview.chromium.org/7049004/diff/9003/chrome/common/url_constants.h File chrome/common/url_constants.h (right): http://codereview.chromium.org/7049004/diff/9003/chrome/common/url_constants.h#newcode225 chrome/common/url_constants.h:225: bool IsChromeURL(const GURL& url, const char* host); On ...
9 years, 7 months ago (2011-05-24 03:27:39 UTC) #13
msw
Evan: Ping! I moved ChromeURLHostEquals to chrome/browser/ui/webui/web_ui_util.h, as you requested offline.
9 years, 7 months ago (2011-05-24 19:22:19 UTC) #14
Evan Stade
9 years, 7 months ago (2011-05-25 16:54:58 UTC) #15
lgtm

Powered by Google App Engine
This is Rietveld 408576698