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

Unified Diff: chrome/renderer/extensions/automation_internal_custom_bindings.h

Issue 1268163002: Dispatch automation events to the last used profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix crash Created 5 years, 4 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
Index: chrome/renderer/extensions/automation_internal_custom_bindings.h
diff --git a/chrome/renderer/extensions/automation_internal_custom_bindings.h b/chrome/renderer/extensions/automation_internal_custom_bindings.h
index c4f2cd23850cfc59bbc3e764b434aa2a19d99c14..d861b006592fbea92b2b11d8ac16972d35a774e8 100644
--- a/chrome/renderer/extensions/automation_internal_custom_bindings.h
+++ b/chrome/renderer/extensions/automation_internal_custom_bindings.h
@@ -149,7 +149,8 @@ class AutomationInternalCustomBindings : public ObjectBackedNativeHandler,
// Handle accessibility events from the browser process.
void OnAccessibilityEvent(
- const ExtensionMsg_AccessibilityEventParams& params);
+ const ExtensionMsg_AccessibilityEventParams& params,
+ bool is_active_profile);
// AXTreeDelegate implementation.
void OnNodeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override;
@@ -167,6 +168,7 @@ class AutomationInternalCustomBindings : public ObjectBackedNativeHandler,
base::hash_map<int, TreeCache*> tree_id_to_tree_cache_map_;
base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_;
scoped_refptr<AutomationMessageFilter> message_filter_;
+ bool is_active_profile_;
DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings);
};

Powered by Google App Engine
This is Rietveld 408576698