summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/search_extension.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 18:33:42 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-07 18:33:42 +0000
commitd91ddfc676314764d240a9ad0da06063bb265d76 (patch)
treea7b99767ed2180ea7367ae21b1622e83268c9a28 /chrome/renderer/search_extension.cc
parent9b5c0c53fcf0947856d5973688776da5068743f7 (diff)
downloadchromium_src-d91ddfc676314764d240a9ad0da06063bb265d76.zip
chromium_src-d91ddfc676314764d240a9ad0da06063bb265d76.tar.gz
chromium_src-d91ddfc676314764d240a9ad0da06063bb265d76.tar.bz2
Cleanup: Stop creating RenderViewObservers from chrome/ in RenderView.
BUG=76795 TEST=none Review URL: http://codereview.chromium.org/6750018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80818 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/search_extension.cc')
-rw-r--r--chrome/renderer/search_extension.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/renderer/search_extension.cc b/chrome/renderer/search_extension.cc
index 2a73e89..384e944 100644
--- a/chrome/renderer/search_extension.cc
+++ b/chrome/renderer/search_extension.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 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.
@@ -82,7 +82,8 @@ v8::Handle<v8::Value> SearchExtensionWrapper::SetSuggestResult(
std::vector<std::string> suggestions;
suggestions.push_back(std::string(*v8::String::Utf8Value(args[0])));
- render_view->searchbox()->SetSuggestions(suggestions, INSTANT_COMPLETE_NOW);
+ SearchBox::Get(render_view)->SetSuggestions(suggestions,
+ INSTANT_COMPLETE_NOW);
return v8::Undefined();
}