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

Unified Diff: chromeos/login/auth/online_attempt.h

Issue 552323003: Changing the order of initialization WeakPtrFactory (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
« no previous file with comments | « chromeos/audio/cras_audio_handler.cc ('k') | chromeos/login/auth/online_attempt.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/login/auth/online_attempt.h
diff --git a/chromeos/login/auth/online_attempt.h b/chromeos/login/auth/online_attempt.h
index c91d0642d30f2e2a2d5f921ca725335583a6145d..251fe0a2012227d041adec2141a2cbd39fc4b716 100644
--- a/chromeos/login/auth/online_attempt.h
+++ b/chromeos/login/auth/online_attempt.h
@@ -68,12 +68,12 @@ class CHROMEOS_EXPORT OnlineAttempt : public GaiaAuthConsumer {
// Handles ClientLogin communications with Gaia.
scoped_ptr<GaiaAuthFetcher> client_fetcher_;
- // Used to cancel the CancelClientLogin closure.
- base::WeakPtrFactory<OnlineAttempt> weak_factory_;
-
// Whether we're willing to re-try the ClientLogin attempt.
bool try_again_;
+ // Used to cancel the CancelClientLogin closure.
+ base::WeakPtrFactory<OnlineAttempt> weak_factory_;
+
friend class OnlineAttemptTest;
DISALLOW_COPY_AND_ASSIGN(OnlineAttempt);
};
« no previous file with comments | « chromeos/audio/cras_audio_handler.cc ('k') | chromeos/login/auth/online_attempt.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698