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

Unified Diff: chrome/browser/chromeos/policy/app_pack_updater.cc

Issue 572873002: Declaring the weak_ptr_factory in proper order. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build break fixed 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/chromeos/policy/app_pack_updater.cc
diff --git a/chrome/browser/chromeos/policy/app_pack_updater.cc b/chrome/browser/chromeos/policy/app_pack_updater.cc
index 7e2508ceb7eab0e3cfc866ed2fc8b34158221b9e..a327d0ee5f7028e119038a8b7f8488e2043d3909 100644
--- a/chrome/browser/chromeos/policy/app_pack_updater.cc
+++ b/chrome/browser/chromeos/policy/app_pack_updater.cc
@@ -62,8 +62,7 @@ class AppPackExternalLoader
AppPackUpdater::AppPackUpdater(net::URLRequestContextGetter* request_context,
EnterpriseInstallAttributes* install_attributes)
- : weak_ptr_factory_(this),
- created_extension_loader_(false),
+ : created_extension_loader_(false),
install_attributes_(install_attributes),
external_cache_(base::FilePath(kAppPackCacheDir),
request_context,
@@ -74,7 +73,8 @@ AppPackUpdater::AppPackUpdater(net::URLRequestContextGetter* request_context,
base::SequencedWorkerPool::SKIP_ON_SHUTDOWN),
this,
false,
- false) {
+ false),
+ weak_ptr_factory_(this) {
app_pack_subscription_ = chromeos::CrosSettings::Get()->AddSettingsObserver(
chromeos::kAppPack,
base::Bind(&AppPackUpdater::AppPackChanged, base::Unretained(this)));
« no previous file with comments | « chrome/browser/chromeos/policy/app_pack_updater.h ('k') | chrome/browser/chromeos/policy/device_status_collector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698