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

Unified Diff: extensions/browser/api/declarative/rules_registry.cc

Issue 744663002: Fix WeakPtrFactory member ordering in extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporated changes Created 6 years, 1 month 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
« no previous file with comments | « extensions/browser/api/declarative/rules_registry.h ('k') | extensions/browser/app_window/app_window.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/declarative/rules_registry.cc
diff --git a/extensions/browser/api/declarative/rules_registry.cc b/extensions/browser/api/declarative/rules_registry.cc
index ececdfdaa85cda66bbf7f600c0926cc6c78c8487..68aa434682fd610c93418b4362a2e9efe19595c6 100644
--- a/extensions/browser/api/declarative/rules_registry.cc
+++ b/extensions/browser/api/declarative/rules_registry.cc
@@ -80,8 +80,8 @@ RulesRegistry::RulesRegistry(content::BrowserContext* browser_context,
webview_key_(webview_key),
ready_(/*signaled=*/!cache_delegate), // Immediately ready if no cache
// delegate to wait for.
- weak_ptr_factory_(browser_context_ ? this : NULL),
- last_generated_rule_identifier_id_(0) {
+ last_generated_rule_identifier_id_(0),
+ weak_ptr_factory_(browser_context_ ? this : NULL) {
if (cache_delegate) {
cache_delegate_ = cache_delegate->GetWeakPtr();
cache_delegate->Init(this);
« no previous file with comments | « extensions/browser/api/declarative/rules_registry.h ('k') | extensions/browser/app_window/app_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698