Index: chrome/browser/ui/webui/quota_internals_ui.cc |
diff --git a/chrome/browser/ui/webui/quota_internals_ui.cc b/chrome/browser/ui/webui/quota_internals_ui.cc |
index 4d4fcab7d38231682931464ea9229abf2a172906..ea81ebb44916cb3dc51221ecad793e14be187adb 100644 |
--- a/chrome/browser/ui/webui/quota_internals_ui.cc |
+++ b/chrome/browser/ui/webui/quota_internals_ui.cc |
@@ -4,10 +4,11 @@ |
#include "chrome/browser/ui/webui/quota_internals_ui.h" |
-#include <algorithm> |
#include <string> |
#include "chrome/browser/profiles/profile.h" |
+#include "chrome/browser/ui/webui/chrome_url_data_manager.h" |
+#include "chrome/browser/ui/webui/quota_internals_handler.h" |
#include "chrome/common/url_constants.h" |
#include "content/browser/tab_contents/tab_contents.h" |
#include "content/common/json_value_serializer.h" |
@@ -17,7 +18,8 @@ |
QuotaInternalsUI::QuotaInternalsUI(TabContents* contents) |
: ChromeWebUI(contents) { |
- // TODO(tzik): implement and attach message handler |
+ WebUIMessageHandler* handler = new quota_internals::QuotaInternalsHandler; |
+ AddMessageHandler(handler->Attach(this)); |
contents->profile()->GetChromeURLDataManager()-> |
AddDataSource(new quota_internals::QuotaInternalsHTMLSource); |
} |