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

Unified Diff: chrome/browser/ui/views/location_bar/keyword_hint_view.cc

Issue 8142026: Revert 104076 - Change std::wstring to string16 for views::Link (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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/views/location_bar/keyword_hint_view.cc
===================================================================
--- chrome/browser/ui/views/location_bar/keyword_hint_view.cc (revision 104083)
+++ chrome/browser/ui/views/location_bar/keyword_hint_view.cc (working copy)
@@ -4,8 +4,6 @@
#include "chrome/browser/ui/views/location_bar/keyword_hint_view.h"
-#include <vector>
-
#include "base/logging.h"
#include "base/utf_string_conversions.h"
#include "chrome/app/chrome_command_ids.h"
@@ -67,11 +65,12 @@
&is_extension_keyword);
int message_id = is_extension_keyword ?
IDS_OMNIBOX_EXTENSION_KEYWORD_HINT : IDS_OMNIBOX_KEYWORD_HINT;
- const string16 keyword_hint = l10n_util::GetStringFUTF16(
- message_id,
- string16(),
- short_name,
- &content_param_offsets);
+ const std::wstring keyword_hint =
+ UTF16ToWide(l10n_util::GetStringFUTF16(
+ message_id,
+ string16(),
+ short_name,
+ &content_param_offsets));
if (content_param_offsets.size() == 2) {
leading_label_->SetText(
keyword_hint.substr(0, content_param_offsets.front()));

Powered by Google App Engine
This is Rietveld 408576698