summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_function.cc
diff options
context:
space:
mode:
authorerikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-17 23:09:10 +0000
committererikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-17 23:09:10 +0000
commit73404a373b7c8ca68793d58a0750d086dc49fdda (patch)
treeeb9a0569b42fd3235913754df7a2baf79abb9e4f /chrome/browser/extensions/extension_function.cc
parentbc5987b6febaa0562c1f21e91197937a53116a30 (diff)
downloadchromium_src-73404a373b7c8ca68793d58a0750d086dc49fdda.zip
chromium_src-73404a373b7c8ca68793d58a0750d086dc49fdda.tar.gz
chromium_src-73404a373b7c8ca68793d58a0750d086dc49fdda.tar.bz2
A subset of the bookmarks API- missing events- missing unit tests- missing ability to change URL
Review URL: http://codereview.chromium.org/77003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13977 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_function.cc')
-rw-r--r--chrome/browser/extensions/extension_function.cc11
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/browser/extensions/extension_function.cc b/chrome/browser/extensions/extension_function.cc
index 000c1d5..8de21df 100644
--- a/chrome/browser/extensions/extension_function.cc
+++ b/chrome/browser/extensions/extension_function.cc
@@ -4,15 +4,24 @@
#include "chrome/browser/extensions/extension_function.h"
+#include "base/logging.h"
#include "chrome/browser/extensions/extension_function_dispatcher.h"
void ExtensionFunction::SendResponse(bool success) {
- if (success) {
+ if (bad_message_) {
+ dispatcher_->HandleBadMessage(this);
+ } else if (success) {
if (has_callback()) {
dispatcher_->SendResponse(this);
}
} else {
// TODO(aa): In case of failure, send the error message to an error
// callback.
+ LOG(WARNING) << error_;
}
}
+
+Profile* ExtensionFunction::profile() {
+ return dispatcher_->profile();
+}
+