summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/messaging_bindings.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 23:28:39 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-16 23:28:39 +0000
commitea25b7820aad3419e83f135e9db24ba32c08298f (patch)
tree38eaa2ea3b5c76ffc98956e96abc00346a1609bd /extensions/renderer/messaging_bindings.cc
parent38e87253e69adebfd3ce5b1050cea6c0c9942165 (diff)
downloadchromium_src-ea25b7820aad3419e83f135e9db24ba32c08298f.zip
chromium_src-ea25b7820aad3419e83f135e9db24ba32c08298f.tar.gz
chromium_src-ea25b7820aad3419e83f135e9db24ba32c08298f.tar.bz2
Remove extensions_manifest_types extensions API on Android.
BUG=305852 Review URL: https://codereview.chromium.org/396933002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283575 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions/renderer/messaging_bindings.cc')
-rw-r--r--extensions/renderer/messaging_bindings.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/extensions/renderer/messaging_bindings.cc b/extensions/renderer/messaging_bindings.cc
index fea9a19..860a99e 100644
--- a/extensions/renderer/messaging_bindings.cc
+++ b/extensions/renderer/messaging_bindings.cc
@@ -18,7 +18,6 @@
#include "content/public/renderer/v8_value_converter.h"
#include "extensions/common/api/messaging/message.h"
#include "extensions/common/extension_messages.h"
-#include "extensions/common/manifest_handlers/externally_connectable.h"
#include "extensions/renderer/dispatcher.h"
#include "extensions/renderer/event_bindings.h"
#include "extensions/renderer/object_backed_native_handler.h"
@@ -31,6 +30,12 @@
#include "third_party/WebKit/public/web/WebUserGestureIndicator.h"
#include "v8/include/v8.h"
+// TODO(thestig): Remove #ifdef from this file when extensions are no longer
+// used on mobile.
+#if defined(ENABLE_EXTENSIONS)
+#include "extensions/common/manifest_handlers/externally_connectable.h"
+#endif
+
// Message passing API example (in a content script):
// var extension =
// new chrome.Extension('00123456789abcdef0123456789abcdef0123456');
@@ -261,6 +266,7 @@ void DispatchOnConnectToScriptContext(
if (!source_tab->empty() && !extension->is_platform_app())
tab = converter->ToV8Value(source_tab, script_context->v8_context());
+#if defined(ENABLE_EXTENSIONS)
ExternallyConnectableInfo* externally_connectable =
ExternallyConnectableInfo::Get(extension);
if (externally_connectable &&
@@ -270,6 +276,7 @@ void DispatchOnConnectToScriptContext(
v8::String::kNormalString,
tls_channel_id.size());
}
+#endif
}
v8::Handle<v8::Value> arguments[] = {