summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_view_host.cc
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-06 20:09:34 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-06 20:09:34 +0000
commite87756663c751faea164d8deddbfccbfbbb1cfca (patch)
tree269ac3d28f509b63046674aa1c1204288bf2292b /chrome/browser/render_view_host.cc
parent120671afa85fa5bcbe689c5078d0eeb6449b3b6d (diff)
downloadchromium_src-e87756663c751faea164d8deddbfccbfbbb1cfca.zip
chromium_src-e87756663c751faea164d8deddbfccbfbbb1cfca.tar.gz
chromium_src-e87756663c751faea164d8deddbfccbfbbb1cfca.tar.bz2
Reverting the autofill popu CL as it creates perf regression.
TBR=nsylvain Review URL: http://codereview.chromium.org/9460 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4908 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_view_host.cc')
-rw-r--r--chrome/browser/render_view_host.cc44
1 files changed, 2 insertions, 42 deletions
diff --git a/chrome/browser/render_view_host.cc b/chrome/browser/render_view_host.cc
index 8f866ec..06958bd 100644
--- a/chrome/browser/render_view_host.cc
+++ b/chrome/browser/render_view_host.cc
@@ -689,8 +689,6 @@ void RenderViewHost::OnMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(ViewHostMsg_ShouldClose_ACK, OnMsgShouldCloseACK);
IPC_MESSAGE_HANDLER(ViewHostMsg_UnloadListenerChanged,
OnUnloadListenerChanged);
- IPC_MESSAGE_HANDLER(ViewHostMsg_QueryFormFieldAutofill,
- OnQueryFormFieldAutofill)
// Have the super handle all other messages.
IPC_MESSAGE_UNHANDLED(RenderWidgetHost::OnMessageReceived(msg))
IPC_END_MESSAGE_MAP_EX()
@@ -720,11 +718,10 @@ void RenderViewHost::OnMsgCreateWindow(int route_id,
view->CreateNewWindow(route_id, modal_dialog_event);
}
-void RenderViewHost::OnMsgCreateWidget(int route_id,
- bool focus_on_show) {
+void RenderViewHost::OnMsgCreateWidget(int route_id) {
RenderViewHostDelegate::View* view = delegate_->GetViewDelegate();
if (view)
- view->CreateNewWidget(route_id, focus_on_show);
+ view->CreateNewWidget(route_id);
}
void RenderViewHost::OnMsgShowView(int route_id,
@@ -1221,43 +1218,6 @@ void RenderViewHost::OnUnloadListenerChanged(bool has_listener) {
has_unload_listener_ = has_listener;
}
-void RenderViewHost::OnQueryFormFieldAutofill(const std::wstring& field_name,
- const std::wstring& user_text,
- int64 node_id,
- int request_id) {
- // TODO(jcampan): this is where the suggestions should be queried from the
- // database. The sample code commented below is left here in the meantime for
- // testing purpose.
-#ifndef TEST_AUTOFILL
- static std::vector<std::wstring>* suggestions = NULL;
- if (!suggestions) {
- suggestions = new std::vector<std::wstring>();
- suggestions->push_back(L"Alice");
- suggestions->push_back(L"Jay");
- suggestions->push_back(L"Jason");
- suggestions->push_back(L"Jasmine");
- suggestions->push_back(L"Jamel");
- suggestions->push_back(L"Jamelo");
- suggestions->push_back(L"Volvo");
- suggestions->push_back(L"Volswagen");
- }
-
-
- std::vector<std::wstring> result;
- for (std::vector<std::wstring>::iterator iter = suggestions->begin();
- iter != suggestions->end(); ++iter) {
- if (StartsWith(*iter, user_text, false))
- result.push_back(*iter);
- }
- Send(new ViewMsg_AutofillSuggestions(routing_id_,
- node_id, request_id, result, 0));
-#else
- Send(new ViewMsg_AutofillSuggestions(routing_id_,
- node_id, request_id,
- std::vector<std::wstring>(), 0));
-#endif
-}
-
void RenderViewHost::NotifyRendererUnresponsive() {
// If the debugger is attached, we're going to be unresponsive anytime it's
// stopped at a breakpoint.