Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 | |
|
ncarter (slow)
2016/12/01 22:33:32
Remove.
Navid Zolghadr
2016/12/02 20:47:35
Done.
| |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 4 | 5 |
| 5 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" | 6 #include "chrome/browser/tab_contents/navigation_metrics_recorder.h" |
| 6 | 7 |
| 7 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 8 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 9 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/tab_contents/origins_seen_service_factory.h" | 11 #include "chrome/browser/tab_contents/origins_seen_service_factory.h" |
| 11 #include "components/navigation_metrics/navigation_metrics.h" | 12 #include "components/navigation_metrics/navigation_metrics.h" |
| 12 #include "components/navigation_metrics/origins_seen_service.h" | 13 #include "components/navigation_metrics/origins_seen_service.h" |
| 14 #include "components/rappor/public/rappor_utils.h" | |
| 13 #include "components/rappor/rappor_service.h" | 15 #include "components/rappor/rappor_service.h" |
| 14 #include "components/rappor/rappor_utils.h" | |
| 15 #include "content/public/browser/browser_context.h" | 16 #include "content/public/browser/browser_context.h" |
| 16 #include "content/public/browser/browser_thread.h" | 17 #include "content/public/browser/browser_thread.h" |
| 17 #include "content/public/browser/navigation_details.h" | 18 #include "content/public/browser/navigation_details.h" |
| 18 #include "content/public/browser/navigation_entry.h" | 19 #include "content/public/browser/navigation_entry.h" |
| 19 #include "content/public/browser/render_view_host.h" | 20 #include "content/public/browser/render_view_host.h" |
| 20 #include "content/public/browser/render_widget_host.h" | 21 #include "content/public/browser/render_widget_host.h" |
| 21 #include "content/public/browser/render_widget_host_view.h" | 22 #include "content/public/browser/render_widget_host_view.h" |
| 22 #include "content/public/common/frame_navigate_params.h" | 23 #include "content/public/common/frame_navigate_params.h" |
| 23 #include "url/gurl.h" | 24 #include "url/gurl.h" |
| 24 #include "url/origin.h" | 25 #include "url/origin.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 60 // Record the domain and registry of the URL that resulted in a navigation to | 61 // Record the domain and registry of the URL that resulted in a navigation to |
| 61 // a |data:| URL, either by redirects or user clicking a link. | 62 // a |data:| URL, either by redirects or user clicking a link. |
| 62 if (details.entry->GetVirtualURL().SchemeIs(url::kDataScheme) && | 63 if (details.entry->GetVirtualURL().SchemeIs(url::kDataScheme) && |
| 63 !ui::PageTransitionCoreTypeIs(params.transition, | 64 !ui::PageTransitionCoreTypeIs(params.transition, |
| 64 ui::PAGE_TRANSITION_TYPED) && | 65 ui::PAGE_TRANSITION_TYPED) && |
| 65 !details.previous_url.is_empty()) { | 66 !details.previous_url.is_empty()) { |
| 66 rappor::SampleDomainAndRegistryFromGURL( | 67 rappor::SampleDomainAndRegistryFromGURL( |
| 67 rappor_service_, "Navigation.Scheme.Data", details.previous_url); | 68 rappor_service_, "Navigation.Scheme.Data", details.previous_url); |
| 68 } | 69 } |
| 69 } | 70 } |
| OLD | NEW |