summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_about_handler.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-24 02:26:00 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-24 02:26:00 +0000
commit0afe80d755b899c188313629ea3f45f0fe5be981 (patch)
treefd2833d7e23ac5ec7ac717741eaa5e03719b43cf /chrome/browser/browser_about_handler.cc
parent1f8859ad6ec7ea807c0330ddf5559e13be5fb26c (diff)
downloadchromium_src-0afe80d755b899c188313629ea3f45f0fe5be981.zip
chromium_src-0afe80d755b899c188313629ea3f45f0fe5be981.tar.gz
chromium_src-0afe80d755b899c188313629ea3f45f0fe5be981.tar.bz2
Create a dialog box for the about:network view and kill the tab type.
This adds an AppendText method to the text field view. The job tracker stuff is just copied from the old network status file. Review URL: http://codereview.chromium.org/18728 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r--chrome/browser/browser_about_handler.cc12
1 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc
index d5eadc4..0445fc4 100644
--- a/chrome/browser/browser_about_handler.cc
+++ b/chrome/browser/browser_about_handler.cc
@@ -30,6 +30,7 @@
#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/browser/renderer_host/render_view_host.h"
#include "chrome/browser/tab_contents/ipc_status_view.h"
+#include "chrome/browser/views/about_network_dialog.h"
#include "chrome/common/jstemplate_builder.h"
#include "chrome/common/l10n_util.h"
#include "chrome/common/pref_names.h"
@@ -173,9 +174,14 @@ bool BrowserAboutHandler::MaybeHandle(GURL* url,
}
if (LowerCaseEqualsASCII(url->path(), "network")) {
- // about:network doesn't have an internal protocol, so don't modify |url|.
- *result_type = TAB_CONTENTS_NETWORK_STATUS_VIEW;
- return true;
+ // Run the dialog. This will re-use the existing one if it's already up.
+ AboutNetworkDialog::RunDialog();
+
+ // Navigate the renderer to about:blank. This is kind of stupid but is the
+ // easiest thing to do in this situation without adding a lot of complexity
+ // for this developer-only feature.
+ *url = GURL("about:blank");
+ return false;
}
#ifdef IPC_MESSAGE_LOG_ENABLED