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

Unified Diff: content/test/accessibility_browser_test_utils.cc

Issue 565013003: Changing the order of initialization WeakPtrFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolving the build error 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 | « content/test/accessibility_browser_test_utils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/accessibility_browser_test_utils.cc
diff --git a/content/test/accessibility_browser_test_utils.cc b/content/test/accessibility_browser_test_utils.cc
index ef4389673d4a9200718e2333e3d5e6154b510dc5..a2f381559764f3c5947822eb01b090e7af8e657c 100644
--- a/content/test/accessibility_browser_test_utils.cc
+++ b/content/test/accessibility_browser_test_utils.cc
@@ -23,8 +23,8 @@ namespace content {
AccessibilityNotificationWaiter::AccessibilityNotificationWaiter(Shell* shell)
: event_to_wait_for_(ui::AX_EVENT_NONE),
loop_runner_(new MessageLoopRunner()),
- weak_factory_(this),
- event_target_id_(0) {
+ event_target_id_(0),
+ weak_factory_(this) {
WebContents* web_contents = shell->web_contents();
frame_host_ = static_cast<RenderFrameHostImpl*>(
web_contents->GetMainFrame());
@@ -39,8 +39,8 @@ AccessibilityNotificationWaiter::AccessibilityNotificationWaiter(
ui::AXEvent event_type)
: event_to_wait_for_(event_type),
loop_runner_(new MessageLoopRunner()),
- weak_factory_(this),
- event_target_id_(0) {
+ event_target_id_(0),
+ weak_factory_(this) {
WebContentsImpl* web_contents = static_cast<WebContentsImpl*>(
shell->web_contents());
frame_host_ = static_cast<RenderFrameHostImpl*>(
@@ -57,8 +57,8 @@ AccessibilityNotificationWaiter::AccessibilityNotificationWaiter(
: frame_host_(frame_host),
event_to_wait_for_(event_type),
loop_runner_(new MessageLoopRunner()),
- weak_factory_(this),
- event_target_id_(0) {
+ event_target_id_(0),
+ weak_factory_(this) {
frame_host_->SetAccessibilityCallbackForTesting(
base::Bind(&AccessibilityNotificationWaiter::OnAccessibilityEvent,
weak_factory_.GetWeakPtr()));
« no previous file with comments | « content/test/accessibility_browser_test_utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698