Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: chrome/renderer/autofill_helper.cc

Issue 6366019: Part 1 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Nico's changes that I patched in for testing. Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/autofill_helper.h" 5 #include "chrome/renderer/autofill_helper.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/common/autofill_messages.h" 8 #include "chrome/common/autofill_messages.h"
9 #include "chrome/common/chrome_constants.h" 9 #include "chrome/common/chrome_constants.h"
10 #include "chrome/renderer/form_manager.h" 10 #include "chrome/renderer/form_manager.h"
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 password_autocomplete_manager_(password_autocomplete_manager), 45 password_autocomplete_manager_(password_autocomplete_manager),
46 autofill_query_id_(0), 46 autofill_query_id_(0),
47 autofill_action_(AUTOFILL_NONE), 47 autofill_action_(AUTOFILL_NONE),
48 display_warning_if_disabled_(false), 48 display_warning_if_disabled_(false),
49 was_query_node_autofilled_(false), 49 was_query_node_autofilled_(false),
50 suggestions_clear_index_(-1), 50 suggestions_clear_index_(-1),
51 suggestions_options_index_(-1), 51 suggestions_options_index_(-1),
52 ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) { 52 ALLOW_THIS_IN_INITIALIZER_LIST(method_factory_(this)) {
53 } 53 }
54 54
55 AutoFillHelper::~AutoFillHelper() {}
56
55 bool AutoFillHelper::OnMessageReceived(const IPC::Message& message) { 57 bool AutoFillHelper::OnMessageReceived(const IPC::Message& message) {
56 bool handled = true; 58 bool handled = true;
57 IPC_BEGIN_MESSAGE_MAP(AutoFillHelper, message) 59 IPC_BEGIN_MESSAGE_MAP(AutoFillHelper, message)
58 IPC_MESSAGE_HANDLER(AutoFillMsg_SuggestionsReturned, OnSuggestionsReturned) 60 IPC_MESSAGE_HANDLER(AutoFillMsg_SuggestionsReturned, OnSuggestionsReturned)
59 IPC_MESSAGE_HANDLER(AutoFillMsg_FormDataFilled, OnFormDataFilled) 61 IPC_MESSAGE_HANDLER(AutoFillMsg_FormDataFilled, OnFormDataFilled)
60 IPC_MESSAGE_UNHANDLED(handled = false) 62 IPC_MESSAGE_UNHANDLED(handled = false)
61 IPC_END_MESSAGE_MAP() 63 IPC_END_MESSAGE_MAP()
62 return handled; 64 return handled;
63 } 65 }
64 66
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
386 field); 388 field);
387 389
388 // WebFormControlElementToFormField does not scrape the DOM for the field 390 // WebFormControlElementToFormField does not scrape the DOM for the field
389 // label, so find the label here. 391 // label, so find the label here.
390 // TODO(jhawkins): Add form and field identities so we can use the cached form 392 // TODO(jhawkins): Add form and field identities so we can use the cached form
391 // data in FormManager. 393 // data in FormManager.
392 field->set_label(FormManager::LabelForElement(element)); 394 field->set_label(FormManager::LabelForElement(element));
393 395
394 return true; 396 return true;
395 } 397 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698