diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-11 17:51:49 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-11 17:51:49 +0000 |
commit | e9273e19ac50bb20ea9bdcb0a65935bbf5cdd545 (patch) | |
tree | b7596ac00576f552970d869e48f0517448fa70e4 /chrome/browser/ui/omnibox/location_bar_util.cc | |
parent | 6463f823d8a7e915d2ae0f473aabe599c73fdc30 (diff) | |
download | chromium_src-e9273e19ac50bb20ea9bdcb0a65935bbf5cdd545.zip chromium_src-e9273e19ac50bb20ea9bdcb0a65935bbf5cdd545.tar.gz chromium_src-e9273e19ac50bb20ea9bdcb0a65935bbf5cdd545.tar.bz2 |
Replace some string16's with base namespace in chrome/browser
TBR=sky
Review URL: https://codereview.chromium.org/101953005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@240126 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/omnibox/location_bar_util.cc')
-rw-r--r-- | chrome/browser/ui/omnibox/location_bar_util.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/ui/omnibox/location_bar_util.cc b/chrome/browser/ui/omnibox/location_bar_util.cc index 8bfffbd..3c327a0 100644 --- a/chrome/browser/ui/omnibox/location_bar_util.cc +++ b/chrome/browser/ui/omnibox/location_bar_util.cc @@ -16,13 +16,13 @@ namespace location_bar_util { -string16 CalculateMinString(const string16& description) { +string16 CalculateMinString(const base::string16& description) { // Chop at the first '.' or whitespace. const size_t dot_index = description.find('.'); const size_t ws_index = description.find_first_of(base::kWhitespaceUTF16); size_t chop_index = std::min(dot_index, ws_index); - string16 min_string; - if (chop_index == string16::npos) { + base::string16 min_string; + if (chop_index == base::string16::npos) { // No dot or whitespace, truncate to at most 3 chars. min_string = gfx::TruncateString(description, 3); } else { |