Index: chrome/browser/dom_ui/dom_ui.cc |
diff --git a/chrome/browser/dom_ui/dom_ui.cc b/chrome/browser/dom_ui/dom_ui.cc |
index 2088427f3d8f10e24bc497eae2d948e0cdff4f96..7f38aef26fad84bbcb58b526863479992b727876 100644 |
--- a/chrome/browser/dom_ui/dom_ui.cc |
+++ b/chrome/browser/dom_ui/dom_ui.cc |
@@ -35,7 +35,7 @@ DOMUI::~DOMUI() { |
// DOMUI, public: ------------------------------------------------------------- |
void DOMUI::ProcessDOMUIMessage(const std::string& message, |
- const std::string& content, |
+ const Value* content, |
int request_id, |
bool has_callback) { |
// Look up the callback for this message. |
@@ -44,20 +44,8 @@ void DOMUI::ProcessDOMUIMessage(const std::string& message, |
if (callback == message_callbacks_.end()) |
return; |
- // Convert the content JSON into a Value. |
- scoped_ptr<Value> value; |
- if (!content.empty()) { |
- value.reset(JSONReader::Read(content, false)); |
- if (!value.get()) { |
- // The page sent us something that we didn't understand. |
- // This probably indicates a programming error. |
- NOTREACHED(); |
- return; |
- } |
- } |
- |
// Forward this message and content on. |
- callback->second->Run(value.get()); |
+ callback->second->Run(content); |
} |
void DOMUI::CallJavascriptFunction(const std::wstring& function_name) { |