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

Unified Diff: components/url_formatter/elide_url.cc

Issue 1428593004: Enable url_formatter::ElideUrl and url_formatter::ElideHost for aura Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable ElideUrl for aura Android Created 5 years, 1 month 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
« components/url_formatter/BUILD.gn ('K') | « components/url_formatter/elide_url.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/url_formatter/elide_url.cc
diff --git a/components/url_formatter/elide_url.cc b/components/url_formatter/elide_url.cc
index 80e7866880d25f130c5051b9d6eacc1238a4ed59..3d216a6f605455e05550e4351a80558d3357144b 100644
--- a/components/url_formatter/elide_url.cc
+++ b/components/url_formatter/elide_url.cc
@@ -13,14 +13,14 @@
#include "url/gurl.h"
#include "url/url_constants.h"
-#if !defined(OS_ANDROID)
+#if !defined(OS_ANDROID) || defined(USE_AURA)
#include "ui/gfx/text_elider.h" // nogncheck
#include "ui/gfx/text_utils.h" // nogncheck
-#endif
+#endif // !defined(OS_ANDROID) || defined(USE_AURA)
namespace {
-#if !defined(OS_ANDROID)
+#if !defined(OS_ANDROID) || defined(USE_AURA)
const base::char16 kDot = '.';
// Build a path from the first |num_components| elements in |path_elements|.
@@ -102,7 +102,7 @@ void SplitHost(const GURL& url,
}
}
-#endif // !defined(OS_ANDROID)
+#endif // !defined(OS_ANDROID) || defined(USE_AURA)
base::string16 FormatUrlForSecurityDisplayInternal(const GURL& url,
const std::string& languages,
@@ -154,7 +154,7 @@ base::string16 FormatUrlForSecurityDisplayInternal(const GURL& url,
namespace url_formatter {
-#if !defined(OS_ANDROID)
+#if !defined(OS_ANDROID) || defined(USE_AURA)
// TODO(pkasting): http://crbug.com/77883 This whole function gets
// kerning/ligatures/etc. issues potentially wrong by assuming that the width of
@@ -354,7 +354,7 @@ base::string16 ElideHost(const GURL& url,
return elided_subdomain + url_domain;
}
-#endif // !defined(OS_ANDROID)
+#endif // !defined(OS_ANDROID) || defined(USE_AURA)
base::string16 FormatUrlForSecurityDisplay(const GURL& url,
const std::string& languages) {
« components/url_formatter/BUILD.gn ('K') | « components/url_formatter/elide_url.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698