summaryrefslogtreecommitdiffstats
path: root/chrome/browser/instant
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 22:18:25 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-14 22:18:25 +0000
commit6235541680600aecf07e7e85a63dc0843f1b7084 (patch)
tree76304d95b2638e9aa3eebfd5db6b2f2198e4da5d /chrome/browser/instant
parentfd4aafc80ad6b4fc7dcbbe36dfec3b7e1bcbd707 (diff)
downloadchromium_src-6235541680600aecf07e7e85a63dc0843f1b7084.zip
chromium_src-6235541680600aecf07e7e85a63dc0843f1b7084.tar.gz
chromium_src-6235541680600aecf07e7e85a63dc0843f1b7084.tar.bz2
Revert 71485 - Remove wstring from TemplateURL and friends.
BUG=23581 TEST=no visible changes; all tests pass Review URL: http://codereview.chromium.org/6322001 TBR=avi@chromium.org Review URL: http://codereview.chromium.org/6291003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71500 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/instant')
-rw-r--r--chrome/browser/instant/instant_browsertest.cc6
-rw-r--r--chrome/browser/instant/instant_loader.cc4
2 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/instant/instant_browsertest.cc b/chrome/browser/instant/instant_browsertest.cc
index 0e32467..2409068 100644
--- a/chrome/browser/instant/instant_browsertest.cc
+++ b/chrome/browser/instant/instant_browsertest.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.
@@ -58,8 +58,8 @@ class InstantTest : public InProcessBrowserTest {
page.c_str());
template_url->SetURL(url, 0, 0);
template_url->SetInstantURL(url, 0, 0);
- template_url->set_keyword(ASCIIToUTF16("foo"));
- template_url->set_short_name(ASCIIToUTF16("foo"));
+ template_url->set_keyword(UTF8ToWide("foo"));
+ template_url->set_short_name(UTF8ToWide("foo"));
model->Add(template_url);
model->SetDefaultSearchProvider(template_url);
diff --git a/chrome/browser/instant/instant_loader.cc b/chrome/browser/instant/instant_loader.cc
index bc472ea..9f73025 100644
--- a/chrome/browser/instant/instant_loader.cc
+++ b/chrome/browser/instant/instant_loader.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.
@@ -504,7 +504,7 @@ void InstantLoader::Update(TabContentsWrapper* tab_contents,
// TODO(sky): having to use a replaceable url is a bit of a hack here.
GURL instant_url(
template_url->instant_url()->ReplaceSearchTerms(
- *template_url, string16(), -1, string16()));
+ *template_url, std::wstring(), -1, std::wstring()));
CommandLine* cl = CommandLine::ForCurrentProcess();
if (cl->HasSwitch(switches::kInstantURL))
instant_url = GURL(cl->GetSwitchValueASCII(switches::kInstantURL));