summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_popup_model.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_popup_model.cc')
-rw-r--r--chrome/browser/autocomplete/autocomplete_popup_model.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_model.cc b/chrome/browser/autocomplete/autocomplete_popup_model.cc
index beb80c3..8af3572 100644
--- a/chrome/browser/autocomplete/autocomplete_popup_model.cc
+++ b/chrome/browser/autocomplete/autocomplete_popup_model.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 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.
@@ -9,7 +9,6 @@
#include "unicode/ubidi.h"
#include "base/string_util.h"
-#include "base/utf_string_conversions.h"
#include "chrome/browser/autocomplete/autocomplete_edit.h"
#include "chrome/browser/autocomplete/autocomplete_match.h"
#include "chrome/browser/autocomplete/autocomplete_popup_view.h"
@@ -208,7 +207,7 @@ bool AutocompletePopupModel::GetKeywordForMatch(const AutocompleteMatch& match,
// If the current match is a keyword, return that as the selected keyword.
if (TemplateURL::SupportsReplacement(match.template_url)) {
- keyword->assign(UTF16ToWideHack(match.template_url->keyword()));
+ keyword->assign(match.template_url->keyword());
return false;
}
@@ -216,8 +215,8 @@ bool AutocompletePopupModel::GetKeywordForMatch(const AutocompleteMatch& match,
if (!profile_->GetTemplateURLModel())
return false;
profile_->GetTemplateURLModel()->Load();
- const string16 keyword_hint(TemplateURLModel::CleanUserInputKeyword(
- WideToUTF16Hack(match.fill_into_edit)));
+ const std::wstring keyword_hint(
+ TemplateURLModel::CleanUserInputKeyword(match.fill_into_edit));
if (keyword_hint.empty())
return false;
@@ -237,7 +236,7 @@ bool AutocompletePopupModel::GetKeywordForMatch(const AutocompleteMatch& match,
return false;
}
- keyword->assign(UTF16ToWideHack(keyword_hint));
+ keyword->assign(keyword_hint);
return true;
}