Skip to content

Commit

Permalink
[Extensions Bindings] Consolidate app hooks methods
Browse files Browse the repository at this point in the history
Move AppBindingsCore's functionality into AppHooksDelegate. When we had
JS and native bindings, we needed to share this code; now that we only
have native bindings, the AppHooksDelegate is the only consumer.

This is mostly copy-paste, but has a few differences since
AppBindingsCore handled sending IPC messages to the browser (this is
now handled by a helper object in AppHooksDelegate).

Also delete AppBindings, the old C++ handlers for the JS code.

Bug: 938998

Change-Id: Ie44a75c523c60b45417610c19e04299047b8121a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1535237
Reviewed-by: Karan Bhatia <karandeepb@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#645137}
  • Loading branch information
rdcronin authored and Commit Bot committed Mar 28, 2019
1 parent a2daa74 commit 9063ba2
Show file tree
Hide file tree
Showing 8 changed files with 191 additions and 350 deletions.
4 changes: 0 additions & 4 deletions chrome/renderer/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,6 @@ jumbo_static_library("renderer") {

if (enable_extensions) {
sources += [
"extensions/app_bindings.cc",
"extensions/app_bindings.h",
"extensions/app_bindings_core.cc",
"extensions/app_bindings_core.h",
"extensions/app_hooks_delegate.cc",
"extensions/app_hooks_delegate.h",
"extensions/automation_ax_tree_wrapper.cc",
Expand Down
83 changes: 0 additions & 83 deletions chrome/renderer/extensions/app_bindings.cc

This file was deleted.

47 changes: 0 additions & 47 deletions chrome/renderer/extensions/app_bindings.h

This file was deleted.

127 changes: 0 additions & 127 deletions chrome/renderer/extensions/app_bindings_core.cc

This file was deleted.

66 changes: 0 additions & 66 deletions chrome/renderer/extensions/app_bindings_core.h

This file was deleted.

Loading

0 comments on commit 9063ba2

Please sign in to comment.