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

Unified Diff: components/autofill/core/browser/webdata/autofill_webdata_service.cc

Issue 554233002: Refactoring the WeakPtrFactory usage, Member variables should appear before the WeakPtrFactory, to … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: components/autofill/core/browser/webdata/autofill_webdata_service.cc
diff --git a/components/autofill/core/browser/webdata/autofill_webdata_service.cc b/components/autofill/core/browser/webdata/autofill_webdata_service.cc
index 08f4c0334122cf02b4e0822ba8e72ff59319381a..c8c65b77cfe34366903f0211f18c18a150dbbf41 100644
--- a/components/autofill/core/browser/webdata/autofill_webdata_service.cc
+++ b/components/autofill/core/browser/webdata/autofill_webdata_service.cc
@@ -33,8 +33,8 @@ AutofillWebDataService::AutofillWebDataService(
: WebDataServiceBase(wdbs, callback, ui_thread),
ui_thread_(ui_thread),
db_thread_(db_thread),
- weak_ptr_factory_(this),
- autofill_backend_(NULL) {
+ autofill_backend_(NULL),
+ weak_ptr_factory_(this) {
base::Closure on_changed_callback = Bind(
&AutofillWebDataService::NotifyAutofillMultipleChangedOnUIThread,
@@ -51,11 +51,11 @@ AutofillWebDataService::AutofillWebDataService(
ui_thread),
ui_thread_(ui_thread),
db_thread_(db_thread),
- weak_ptr_factory_(this),
autofill_backend_(new AutofillWebDataBackendImpl(NULL,
ui_thread_,
db_thread_,
- base::Closure())) {
+ base::Closure())),
+ weak_ptr_factory_(this) {
}
void AutofillWebDataService::ShutdownOnUIThread() {

Powered by Google App Engine
This is Rietveld 408576698