diff options
author | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-01 01:11:42 +0000 |
---|---|---|
committer | rtenneti@chromium.org <rtenneti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-02-01 01:11:42 +0000 |
commit | e4a1cd4b85d37265c1dd85d52060ea12931bb55b (patch) | |
tree | 003541a847b6f71f915a4b014d0a92203d19bb21 /chrome/browser/browser_about_handler.cc | |
parent | 837f8a402123462a36c95fc64f76d1740dfec784 (diff) | |
download | chromium_src-e4a1cd4b85d37265c1dd85d52060ea12931bb55b.zip chromium_src-e4a1cd4b85d37265c1dd85d52060ea12931bb55b.tar.gz chromium_src-e4a1cd4b85d37265c1dd85d52060ea12931bb55b.tar.bz2 |
First cut at UI for saving net_logs data into a temporary file on
Mobile (Android and iOS).
Added a new page chrome://net-export to start/stop/send the net_log
for mobile platforms. net_log entries are saved in
"chrome-net-export-log.json" file created in temporary directory.
Button "Start Saving (after deleting old data)" will start saving to a
temporary file in "NetLog" directory in Temp directory. It deletes all
the old temporary files that were in that directory before creating a
new temporty file. It is a no-op if we are already saving data into a
file.
Button "Stop Saving Data" closes the temporary file so that it could
be mailed. It is a no-op if we haven't started saving data into a
file.
Button "Send Data" emails the data file if a temporary file exists in
"NetLog" directory. It is a no-op if there is no file.
There is only a single temporary file into which we log the
data. NetLog data is saved in the browser process. Logging of net_log
data behaves similar to the command line option --log-net-log.
If chrome://net-export is accessed in multiple tabs, action in first
tab wins. If Stop is clicked in any tab, logging stops. If start is
clicked in any tab, net logging starts.
about:about lists chrome://net-export as one of the links.
unit tests create a temporary file for each test run and they delete the
file at the end of the test run.
mmenke@ and/or eroman@ for chrome\browser\resources and webui changes.
jar@ for net_log_temp_file changes.
jhawkins@chromium.org for chrome\browser\ui\webui and chrome\browser\resources
OWNERS stamp.
R=jar@chromium.org, mmenke@chromium.org
BUG=151212
TEST=chrome://net-export
Review URL: https://chromiumcodereview.appspot.com/11828036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180026 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_about_handler.cc')
-rw-r--r-- | chrome/browser/browser_about_handler.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc index 45e00c5..a8d7d49 100644 --- a/chrome/browser/browser_about_handler.cc +++ b/chrome/browser/browser_about_handler.cc @@ -34,6 +34,9 @@ const char* const kPaths[] = { chrome::kChromeUIIPCHost, chrome::kChromeUIMediaInternalsHost, chrome::kChromeUIMemoryHost, +#if defined(OS_ANDROID) || defined(OS_IOS) + chrome::kChromeUINetExportHost, +#endif chrome::kChromeUINetInternalsHost, chrome::kChromeUINetworkViewCacheHost, chrome::kChromeUINewTabHost, |