summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/omnibox
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/omnibox')
-rw-r--r--chrome/browser/ui/omnibox/location_bar_util.cc30
-rw-r--r--chrome/browser/ui/omnibox/location_bar_util.h25
2 files changed, 0 insertions, 55 deletions
diff --git a/chrome/browser/ui/omnibox/location_bar_util.cc b/chrome/browser/ui/omnibox/location_bar_util.cc
deleted file mode 100644
index 42a24f5..0000000
--- a/chrome/browser/ui/omnibox/location_bar_util.cc
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright (c) 2012 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/omnibox/location_bar_util.h"
-
-#include "base/i18n/rtl.h"
-#include "base/strings/string_util.h"
-#include "base/strings/utf_string_conversions.h"
-#include "chrome/browser/extensions/extension_action.h"
-#include "third_party/skia/include/core/SkPaint.h"
-#include "third_party/skia/include/effects/SkGradientShader.h"
-#include "ui/gfx/canvas.h"
-#include "ui/gfx/color_utils.h"
-#include "ui/gfx/rect.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) : description.substr(0, chop_index));
- base::i18n::AdjustStringForLocaleDirection(&min_string);
- return min_string;
-}
-
-} // namespace location_bar_util
diff --git a/chrome/browser/ui/omnibox/location_bar_util.h b/chrome/browser/ui/omnibox/location_bar_util.h
deleted file mode 100644
index 08c9240..0000000
--- a/chrome/browser/ui/omnibox/location_bar_util.h
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) 2012 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.
-
-#ifndef CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_
-#define CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_
-
-#include "base/strings/string16.h"
-#include "third_party/skia/include/core/SkColor.h"
-
-class ExtensionAction;
-
-namespace gfx {
-class Canvas;
-class Rect;
-}
-
-namespace location_bar_util {
-
-// Build a short string to use in keyword-search when the field isn't very big.
- base::string16 CalculateMinString(const base::string16& description);
-
-} // namespace location_bar_util
-
-#endif // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_