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

Unified Diff: chrome/browser/browser_about_handler.cc

Issue 1171333003: Move net::FormatUrl and friends outside of //net and into //components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again now that CQ is fixed Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_about_handler.h ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_about_handler.cc
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index 4142dec4a70578ff842fd87bd3e3524bdfd0a593..616d290ff5d589ef5c381f66653a565c3e39887e 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -16,7 +16,7 @@
#include "chrome/browser/ui/browser_dialogs.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/url_constants.h"
-#include "components/url_fixer/url_fixer.h"
+#include "components/url_formatter/url_fixer.h"
bool FixupBrowserAboutURL(GURL* url,
content::BrowserContext* browser_context) {
@@ -24,7 +24,7 @@ bool FixupBrowserAboutURL(GURL* url,
// phase that determines the virtual URL, by including it in an initial
// URLHandler. This prevents minor changes from producing a virtual URL,
// which could lead to a URL spoof.
- *url = url_fixer::FixupURL(url->possibly_invalid_spec(), std::string());
+ *url = url_formatter::FixupURL(url->possibly_invalid_spec(), std::string());
return true;
}
@@ -34,11 +34,11 @@ bool WillHandleBrowserAboutURL(GURL* url,
// then hopefully we can remove this forced fixup.
FixupBrowserAboutURL(url, browser_context);
- // Check that about: URLs are fixed up to chrome: by url_fixer::FixupURL.
+ // Check that about: URLs are fixed up to chrome: by url_formatter::FixupURL.
DCHECK((*url == GURL(url::kAboutBlankURL)) ||
!url->SchemeIs(url::kAboutScheme));
- // Only handle chrome://foo/, url_fixer::FixupURL translates about:foo.
+ // Only handle chrome://foo/, url_formatter::FixupURL translates about:foo.
if (!url->SchemeIs(content::kChromeUIScheme))
return false;
« no previous file with comments | « chrome/browser/browser_about_handler.h ('k') | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698