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

Unified Diff: components/url_formatter/elide_url.cc

Issue 1562833002: Revert of Enable url_formatter::ElideUrl and url_formatter::ElideHost for aura Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: components/url_formatter/elide_url.cc
diff --git a/components/url_formatter/elide_url.cc b/components/url_formatter/elide_url.cc
index 3d216a6f605455e05550e4351a80558d3357144b..80e7866880d25f130c5051b9d6eacc1238a4ed59 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) || defined(USE_AURA)
+#if !defined(OS_ANDROID)
#include "ui/gfx/text_elider.h" // nogncheck
#include "ui/gfx/text_utils.h" // nogncheck
-#endif // !defined(OS_ANDROID) || defined(USE_AURA)
+#endif
namespace {
-#if !defined(OS_ANDROID) || defined(USE_AURA)
+#if !defined(OS_ANDROID)
const base::char16 kDot = '.';
// Build a path from the first |num_components| elements in |path_elements|.
@@ -102,7 +102,7 @@
}
}
-#endif // !defined(OS_ANDROID) || defined(USE_AURA)
+#endif // !defined(OS_ANDROID)
base::string16 FormatUrlForSecurityDisplayInternal(const GURL& url,
const std::string& languages,
@@ -154,7 +154,7 @@
namespace url_formatter {
-#if !defined(OS_ANDROID) || defined(USE_AURA)
+#if !defined(OS_ANDROID)
// 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 @@
return elided_subdomain + url_domain;
}
-#endif // !defined(OS_ANDROID) || defined(USE_AURA)
+#endif // !defined(OS_ANDROID)
base::string16 FormatUrlForSecurityDisplay(const GURL& url,
const std::string& languages) {

Powered by Google App Engine
This is Rietveld 408576698