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

Unified Diff: chrome/browser/ui/location_bar/location_bar_util.cc

Issue 2748103013: Adjust elision of omnibox keyword search label. (Closed)
Patch Set: Created 3 years, 9 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: chrome/browser/ui/location_bar/location_bar_util.cc
diff --git a/chrome/browser/ui/location_bar/location_bar_util.cc b/chrome/browser/ui/location_bar/location_bar_util.cc
deleted file mode 100644
index 381885933c8ec2c6a12e1f6262292a37c798175e..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/location_bar/location_bar_util.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/ui/location_bar/location_bar_util.h"
-
-#include <stddef.h>
-
-#include "base/i18n/rtl.h"
-#include "base/strings/string_util.h"
-#include "base/strings/utf_string_conversions.h"
-#include "ui/gfx/text_elider.h"
-
-namespace location_bar_util {
-
-base::string16 CalculateMinString(const base::string16& description) {
- // Chop at the first '.' or whitespace.
- const size_t chop_index = description.find_first_of(
- base::kWhitespaceUTF16 + base::ASCIIToUTF16("."));
- base::string16 min_string((chop_index == base::string16::npos) ?
- gfx::TruncateString(description, 3, gfx::WORD_BREAK) :
- description.substr(0, chop_index));
- base::i18n::AdjustStringForLocaleDirection(&min_string);
- return min_string;
-}
-
-} // namespace location_bar_util
« no previous file with comments | « chrome/browser/ui/location_bar/location_bar_util.h ('k') | chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698