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

Unified Diff: ui/secure_display/elide_url.h

Issue 1233313005: Move elide_url to its own component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
Index: ui/secure_display/elide_url.h
diff --git a/chrome/browser/ui/elide_url.h b/ui/secure_display/elide_url.h
similarity index 94%
rename from chrome/browser/ui/elide_url.h
rename to ui/secure_display/elide_url.h
index b68267cb6d23568496f79644ed2e1aed49d80723..44aafa56c3deea4e4e2e941d07b7d57a01758feb 100644
--- a/chrome/browser/ui/elide_url.h
+++ b/ui/secure_display/elide_url.h
@@ -4,8 +4,8 @@
//
// This file defines utility functions for eliding URLs.
-#ifndef CHROME_BROWSER_UI_ELIDE_URL_H_
-#define CHROME_BROWSER_UI_ELIDE_URL_H_
+#ifndef UI_SECURE_DISPLAY_ELIDE_URL_H_
+#define UI_SECURE_DISPLAY_ELIDE_URL_H_
#include <string>
@@ -17,6 +17,7 @@ namespace gfx {
class FontList;
}
+namespace secure_display {
// This function takes a GURL object and elides it. It returns a string
// which composed of parts from subdomain, domain, path, filename and query.
// A "..." is added automatically at the end if the elided string is bigger
@@ -61,4 +62,6 @@ base::string16 ElideHost(const GURL& host_url,
base::string16 FormatUrlForSecurityDisplay(const GURL& origin,
const std::string& languages);
-#endif // CHROME_BROWSER_UI_ELIDE_URL_H_
+} // namespace
+
+#endif // UI_SECURE_DISPLAY_ELIDE_URL_H_

Powered by Google App Engine
This is Rietveld 408576698