Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4129)

Unified Diff: chrome/browser/ui/webui/quota_internals_ui.cc

Issue 7084024: Add chrome://quota-internals/ (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: '' Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..b75971b25bf4da90ea6574657653687a0ba53f6f 100644
--- a/chrome/browser/ui/webui/quota_internals_ui.cc
+++ b/chrome/browser/ui/webui/quota_internals_ui.cc
@@ -8,6 +8,8 @@
#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 +19,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);
}

Powered by Google App Engine
This is Rietveld 408576698