diff options
-rw-r--r-- | net/url_request/url_request.cc | 3 | ||||
-rw-r--r-- | tools/metrics/actions/chromeactions.txt | 1 | ||||
-rwxr-xr-x | tools/metrics/actions/extract_actions.py | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc index 46f3a18..58697a2 100644 --- a/net/url_request/url_request.cc +++ b/net/url_request/url_request.cc @@ -14,6 +14,7 @@ #include "base/message_loop/message_loop.h" #include "base/metrics/histogram.h" #include "base/metrics/stats_counters.h" +#include "base/metrics/user_metrics.h" #include "base/stl_util.h" #include "base/strings/utf_string_conversions.h" #include "base/synchronization/lock.h" @@ -706,6 +707,8 @@ void URLRequest::StartJob(URLRequestJob* job) { LOG(FATAL) << "Trying to send secure referrer for insecure load"; #endif referrer_.clear(); + base::RecordAction( + base::UserMetricsAction("Net.URLRequest_StartJob_InvalidReferrer")); } // Don't allow errors to be sent from within Start(). diff --git a/tools/metrics/actions/chromeactions.txt b/tools/metrics/actions/chromeactions.txt index a982c4d..7a4d3f7 100644 --- a/tools/metrics/actions/chromeactions.txt +++ b/tools/metrics/actions/chromeactions.txt @@ -1356,6 +1356,7 @@ 0xdcf1af37de1d8dd0 NativeUI_Applications 0x08b0a573ad336d14 NavEntryCommitted 0xcace6bb1e166082f NavEntryCommitted.SRP +0x17dee5b17b6cc8df Net.URLRequest_StartJob_InvalidReferrer 0x3c6e0d9310ba3a20 NewIncognitoWindow 0xeddaa38a10bf8374 NewProfileWindowByIndex 0x290eb683f96572f1 NewTab diff --git a/tools/metrics/actions/extract_actions.py b/tools/metrics/actions/extract_actions.py index 38cfb2b..11a2e00 100755 --- a/tools/metrics/actions/extract_actions.py +++ b/tools/metrics/actions/extract_actions.py @@ -508,6 +508,8 @@ def AddLiteralActions(actions): WalkDirectory(chrome_root, actions, EXTENSIONS, GrepForActions) content_root = os.path.normpath(os.path.join(REPOSITORY_ROOT, 'content')) WalkDirectory(content_root, actions, EXTENSIONS, GrepForActions) + net_root = os.path.normpath(os.path.join(REPOSITORY_ROOT, 'net')) + WalkDirectory(net_root, actions, EXTENSIONS, GrepForActions) webkit_root = os.path.normpath(os.path.join(REPOSITORY_ROOT, 'webkit')) WalkDirectory(os.path.join(webkit_root, 'glue'), actions, EXTENSIONS, GrepForActions) |