Silently swallow exceptions in extension bindings callbacks.

There are better ways to handle this, but I want a really
simple patch for merge.

BUG=106201
TEST=http://code.google.com/p/chromium/issues/detail?id=100401#c18

Review URL: http://codereview.chromium.org/8786008

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112869 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_bindings_apitest.cc b/chrome/browser/extensions/extension_bindings_apitest.cc
new file mode 100644
index 0000000..8d5bf0a
--- /dev/null
+++ b/chrome/browser/extensions/extension_bindings_apitest.cc
@@ -0,0 +1,13 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// Contains holistic tests of the bindings infrastructure
+
+#include "chrome/browser/extensions/extension_apitest.h"
+
+IN_PROC_BROWSER_TEST_F(ExtensionApiTest, ExceptionInHandlerShouldNotCrash) {
+  ASSERT_TRUE(RunExtensionSubtest(
+      "bindings/exception_in_handler_should_not_crash",
+      "page.html")) << message_;
+}