Index: content/shell/webkit_test_controller.cc |
diff --git a/content/shell/webkit_test_controller.cc b/content/shell/webkit_test_controller.cc |
index 858e0d968c3d33c2608ad9d89b29f43504145e79..3f6fa90af44dd9ff66196942fea30061ffca02f3 100644 |
--- a/content/shell/webkit_test_controller.cc |
+++ b/content/shell/webkit_test_controller.cc |
@@ -219,6 +219,7 @@ bool WebKitTestController::OnMessageReceived(const IPC::Message& message) { |
IPC_BEGIN_MESSAGE_MAP(WebKitTestController, message) |
IPC_MESSAGE_HANDLER(ShellViewHostMsg_DidFinishLoad, OnDidFinishLoad) |
IPC_MESSAGE_HANDLER(ShellViewHostMsg_PrintMessage, OnPrintMessage) |
+ IPC_MESSAGE_HANDLER(ShellViewHostMsg_ReadFileToString, OnReadFileToString) |
IPC_MESSAGE_HANDLER(ShellViewHostMsg_RegisterIsolatedFileSystem, |
OnRegisterIsolatedFileSystem) |
IPC_MESSAGE_HANDLER(ShellViewHostMsg_TextDump, OnTextDump) |
@@ -360,6 +361,11 @@ void WebKitTestController::OnPrintMessage(const std::string& message) { |
printer_->AddMessageRaw(message); |
} |
+void WebKitTestController::OnReadFileToString(const FilePath& local_file, |
+ std::string* contents) { |
+ file_util::ReadFileToString(local_file, contents); |
+} |
+ |
void WebKitTestController::OnOverridePreferences( |
const ShellWebPreferences& prefs) { |
*prefs_.get() = prefs; |