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

Unified Diff: chrome/browser/extensions/updater/extension_updater.cc

Issue 560913006: Changing the Weakptr initialization order in chrome/browser/extension folder (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: chrome/browser/extensions/updater/extension_updater.cc
diff --git a/chrome/browser/extensions/updater/extension_updater.cc b/chrome/browser/extensions/updater/extension_updater.cc
index 3cd89a23111290bcc8004df8ddaf762ffd9c1f6d..76d9e29f092d93f10840387b58c86cfbe129713a 100644
--- a/chrome/browser/extensions/updater/extension_updater.cc
+++ b/chrome/browser/extensions/updater/extension_updater.cc
@@ -214,7 +214,6 @@ ExtensionUpdater::ExtensionUpdater(
ExtensionCache* cache,
const ExtensionDownloader::Factory& downloader_factory)
: alive_(false),
- weak_ptr_factory_(this),
service_(service),
downloader_factory_(downloader_factory),
frequency_seconds_(frequency_seconds),
@@ -225,7 +224,8 @@ ExtensionUpdater::ExtensionUpdater(
next_request_id_(0),
extension_registry_observer_(this),
crx_install_is_running_(false),
- extension_cache_(cache) {
+ extension_cache_(cache),
+ weak_ptr_factory_(this) {
DCHECK_GE(frequency_seconds_, 5);
DCHECK_LE(frequency_seconds_, kMaxUpdateFrequencySeconds);
#if defined(NDEBUG)
« no previous file with comments | « chrome/browser/extensions/updater/extension_updater.h ('k') | chrome/browser/extensions/user_script_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698