OLD | NEW |
---|---|
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_ | 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_ |
6 #define CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_ | 6 #define CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/string16.h" | |
12 | |
11 class Profile; | 13 class Profile; |
12 | 14 |
13 namespace location_bar_util { | 15 namespace location_bar_util { |
14 | 16 |
15 // Returns the short name for a keyword. | 17 // Returns the short name for a keyword. |
16 std::wstring GetKeywordName(Profile* profile, const std::wstring& keyword); | 18 std::wstring GetKeywordName(Profile* profile, const std::wstring& keyword); |
Peter Kasting
2012/04/25 18:23:57
Nit: Can we change this function too, so we can el
| |
17 | 19 |
18 // Build a short string to use in keyword-search when the field isn't | 20 // Build a short string to use in keyword-search when the field isn't |
19 // very big. | 21 // very big. |
20 std::wstring CalculateMinString(const std::wstring& description); | 22 string16 CalculateMinString(const string16& description); |
21 | 23 |
22 } // namespace location_bar_util | 24 } // namespace location_bar_util |
23 | 25 |
24 #endif // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_ | 26 #endif // CHROME_BROWSER_UI_OMNIBOX_LOCATION_BAR_UTIL_H_ |
OLD | NEW |