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

Side by Side Diff: components/autofill/core/browser/autofill_external_delegate.cc

Issue 630983003: Declaring the weak_ptr_factory in proper order in src/components (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "components/autofill/core/browser/autofill_external_delegate.h" 5 #include "components/autofill/core/browser/autofill_external_delegate.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "base/metrics/sparse_histogram.h" 9 #include "base/metrics/sparse_histogram.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 namespace autofill { 43 namespace autofill {
44 44
45 AutofillExternalDelegate::AutofillExternalDelegate(AutofillManager* manager, 45 AutofillExternalDelegate::AutofillExternalDelegate(AutofillManager* manager,
46 AutofillDriver* driver) 46 AutofillDriver* driver)
47 : manager_(manager), 47 : manager_(manager),
48 driver_(driver), 48 driver_(driver),
49 query_id_(0), 49 query_id_(0),
50 display_warning_if_disabled_(false), 50 display_warning_if_disabled_(false),
51 has_suggestion_(false), 51 has_suggestion_(false),
52 has_shown_popup_for_current_edit_(false), 52 has_shown_popup_for_current_edit_(false),
53 weak_ptr_factory_(this), 53 has_shown_address_book_prompt(false),
54 has_shown_address_book_prompt(false) { 54 weak_ptr_factory_(this) {
55 DCHECK(manager); 55 DCHECK(manager);
56 } 56 }
57 57
58 AutofillExternalDelegate::~AutofillExternalDelegate() {} 58 AutofillExternalDelegate::~AutofillExternalDelegate() {}
59 59
60 void AutofillExternalDelegate::OnQuery(int query_id, 60 void AutofillExternalDelegate::OnQuery(int query_id,
61 const FormData& form, 61 const FormData& form,
62 const FormFieldData& field, 62 const FormFieldData& field,
63 const gfx::RectF& element_bounds, 63 const gfx::RectF& element_bounds,
64 bool display_warning_if_disabled) { 64 bool display_warning_if_disabled) {
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 POPUP_ITEM_ID_DATALIST_ENTRY); 401 POPUP_ITEM_ID_DATALIST_ENTRY);
402 } 402 }
403 403
404 #if defined(OS_MACOSX) && !defined(OS_IOS) 404 #if defined(OS_MACOSX) && !defined(OS_IOS)
405 void AutofillExternalDelegate::PingRenderer() { 405 void AutofillExternalDelegate::PingRenderer() {
406 driver_->PingRenderer(); 406 driver_->PingRenderer();
407 } 407 }
408 #endif // defined(OS_MACOSX) && !defined(OS_IOS) 408 #endif // defined(OS_MACOSX) && !defined(OS_IOS)
409 409
410 } // namespace autofill 410 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698