[Metrics] Make MetricsStateManager take a callback param to check if UMA is enabled.
[chromium-blink-merge.git] / chrome / browser / ui / omnibox / location_bar_util.h
blob08c924045067a3b48d2427a43cbb42c2b24c024c
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_
6 #define CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_
8 #include "base/strings/string16.h"
9 #include "third_party/skia/include/core/SkColor.h"
11 class ExtensionAction;
13 namespace gfx {
14 class Canvas;
15 class Rect;
18 namespace location_bar_util {
20 // Build a short string to use in keyword-search when the field isn't very big.
21 base::string16 CalculateMinString(const base::string16& description);
23 } // namespace location_bar_util
25 #endif // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_