summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_function.cc
blob: bfc2f2cb03b1387a07ad453d686d55e5c90f81b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2009 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.

#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 (bad_message_) {
    dispatcher_->HandleBadMessage(this);
  } else {
    dispatcher_->SendResponse(this, success);
  }
}

std::string ExtensionFunction::extension_id() {
  return dispatcher_->extension_id();
}

Profile* ExtensionFunction::profile() {
  return dispatcher_->profile();
}