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

Side by Side Diff: chrome/browser/ui/omnibox/location_bar_util.cc

Issue 5582002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/location_bar_util.h" 5 #include "chrome/browser/ui/omnibox/location_bar_util.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "base/i18n/rtl.h" 8 #include "base/i18n/rtl.h"
9 #include "chrome/browser/profile.h" 9 #include "chrome/browser/profile.h"
10 #include "chrome/browser/search_engines/template_url.h" 10 #include "chrome/browser/search_engines/template_url.h"
11 #include "chrome/browser/search_engines/template_url_model.h" 11 #include "chrome/browser/search_engines/template_url_model.h"
12 12
13 namespace location_bar_util { 13 namespace location_bar_util {
14 14
15 std::wstring GetKeywordName(Profile* profile, const std::wstring& keyword) { 15 std::wstring GetKeywordName(Profile* profile, const std::wstring& keyword) {
(...skipping 17 matching lines...) Expand all
33 // No dot or whitespace, truncate to at most 3 chars. 33 // No dot or whitespace, truncate to at most 3 chars.
34 min_string = l10n_util::TruncateString(description, 3); 34 min_string = l10n_util::TruncateString(description, 3);
35 } else { 35 } else {
36 min_string = description.substr(0, chop_index); 36 min_string = description.substr(0, chop_index);
37 } 37 }
38 base::i18n::AdjustStringForLocaleDirection(&min_string); 38 base::i18n::AdjustStringForLocaleDirection(&min_string);
39 return min_string; 39 return min_string;
40 } 40 }
41 41
42 } // namespace location_bar_util 42 } // namespace location_bar_util
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/location_bar_util.h ('k') | chrome/browser/ui/options/options_page_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698