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

Unified Diff: content/browser/gamepad/gamepad_provider_unittest.cc

Issue 780713002: Fix remaining WeakPtrFactory ordering problems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years 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: content/browser/gamepad/gamepad_provider_unittest.cc
diff --git a/content/browser/gamepad/gamepad_provider_unittest.cc b/content/browser/gamepad/gamepad_provider_unittest.cc
index e4f6571da27f36e8bf11722c373edf3725a83d98..eaea2c69f45fd8a845b7d20dc60b0f35b67db552 100644
--- a/content/browser/gamepad/gamepad_provider_unittest.cc
+++ b/content/browser/gamepad/gamepad_provider_unittest.cc
@@ -21,8 +21,8 @@ using blink::WebGamepads;
class UserGestureListener {
public:
UserGestureListener()
- : weak_factory_(this),
- has_user_gesture_(false) {
+ : has_user_gesture_(false),
+ weak_factory_(this) {
}
base::Closure GetClosure() {
@@ -37,8 +37,8 @@ class UserGestureListener {
has_user_gesture_ = true;
}
- base::WeakPtrFactory<UserGestureListener> weak_factory_;
bool has_user_gesture_;
+ base::WeakPtrFactory<UserGestureListener> weak_factory_;
};
// Main test fixture
« no previous file with comments | « content/browser/fileapi/obfuscated_file_util_unittest.cc ('k') | content/browser/renderer_host/p2p/socket_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698