| Index: chrome/browser/autocomplete/autocomplete_popup_model.cc
|
| ===================================================================
|
| --- chrome/browser/autocomplete/autocomplete_popup_model.cc (revision 71499)
|
| +++ chrome/browser/autocomplete/autocomplete_popup_model.cc (working copy)
|
| @@ -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 @@
|
|
|
| // 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 @@
|
| 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 @@
|
| return false;
|
| }
|
|
|
| - keyword->assign(UTF16ToWideHack(keyword_hint));
|
| + keyword->assign(keyword_hint);
|
| return true;
|
| }
|
|
|
|
|