Index: ui/views/accessibility/native_view_accessibility.cc |
diff --git a/ui/views/accessibility/native_view_accessibility.cc b/ui/views/accessibility/native_view_accessibility.cc |
index aeb2c7071a2b9e46cd3d89dded5b6a2bfbc29973..a11f773d62a67e816bda3fb3a240bd1bed693905 100644 |
--- a/ui/views/accessibility/native_view_accessibility.cc |
+++ b/ui/views/accessibility/native_view_accessibility.cc |
@@ -13,7 +13,7 @@ |
namespace views { |
-#if !defined(OS_WIN) |
+#if !defined(OS_WIN) && !(defined(OS_LINUX) && !defined(OS_CHROMEOS)) |
// static |
NativeViewAccessibility* NativeViewAccessibility::Create(View* view) { |
return new NativeViewAccessibility(view); |
@@ -23,7 +23,8 @@ NativeViewAccessibility* NativeViewAccessibility::Create(View* view) { |
NativeViewAccessibility::NativeViewAccessibility(View* view) |
: view_(view), |
parent_widget_(nullptr), |
- ax_node_(ui::AXPlatformNode::Create(this)) { |
+ ax_node_(nullptr) { |
+ ax_node_ = ui::AXPlatformNode::Create(this); |
} |
NativeViewAccessibility::~NativeViewAccessibility() { |