| Index: ui/views/accessibility/ax_aura_obj_cache.h
|
| diff --git a/ui/views/accessibility/ax_aura_obj_cache.h b/ui/views/accessibility/ax_aura_obj_cache.h
|
| index 6e5d9e829a9b957abe5034b17905bab227bd136f..a8316b5b82182bfba868e3b4e11b3732dd33e651 100644
|
| --- a/ui/views/accessibility/ax_aura_obj_cache.h
|
| +++ b/ui/views/accessibility/ax_aura_obj_cache.h
|
| @@ -52,6 +52,9 @@ class VIEWS_EXPORT AXAuraObjCache {
|
| // Remove a cached entry based on an id.
|
| void Remove(int32 id);
|
|
|
| + // Indicates if this object's currently being destroyed.
|
| + bool is_destroying() { return is_destroying_; }
|
| +
|
| private:
|
| friend struct DefaultSingletonTraits<AXAuraObjCache>;
|
|
|
| @@ -75,6 +78,9 @@ class VIEWS_EXPORT AXAuraObjCache {
|
| std::map<int32, AXAuraObjWrapper*> cache_;
|
| int32 current_id_;
|
|
|
| + // True immediately when entering this object's destructor.
|
| + bool is_destroying_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(AXAuraObjCache);
|
| };
|
|
|
|
|