| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/uma_browsing_activity_observer.h" | 5 #include "chrome/browser/ui/uma_browsing_activity_observer.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "chrome/browser/chrome_notification_types.h" | 8 #include "chrome/browser/chrome_notification_types.h" |
| 9 #include "chrome/browser/search_engines/template_url_service.h" |
| 9 #include "chrome/browser/search_engines/template_url_service_factory.h" | 10 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 10 #include "chrome/browser/ui/browser.h" | 11 #include "chrome/browser/ui/browser.h" |
| 11 #include "chrome/browser/ui/browser_finder.h" | 12 #include "chrome/browser/ui/browser_finder.h" |
| 12 #include "chrome/browser/ui/browser_iterator.h" | 13 #include "chrome/browser/ui/browser_iterator.h" |
| 13 #include "chrome/browser/ui/browser_window.h" | 14 #include "chrome/browser/ui/browser_window.h" |
| 14 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 15 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 15 #include "components/search_engines/template_url_service.h" | |
| 16 #include "content/public/browser/navigation_controller.h" | 16 #include "content/public/browser/navigation_controller.h" |
| 17 #include "content/public/browser/navigation_details.h" | 17 #include "content/public/browser/navigation_details.h" |
| 18 #include "content/public/browser/navigation_entry.h" | 18 #include "content/public/browser/navigation_entry.h" |
| 19 #include "content/public/browser/notification_service.h" | 19 #include "content/public/browser/notification_service.h" |
| 20 #include "content/public/browser/render_process_host.h" | 20 #include "content/public/browser/render_process_host.h" |
| 21 #include "content/public/browser/user_metrics.h" | 21 #include "content/public/browser/user_metrics.h" |
| 22 | 22 |
| 23 namespace chrome { | 23 namespace chrome { |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 // Record how many windows are open, by type. | 124 // Record how many windows are open, by type. |
| 125 UMA_HISTOGRAM_COUNTS_100("WindowManager.AppWindowCountPerLoad", | 125 UMA_HISTOGRAM_COUNTS_100("WindowManager.AppWindowCountPerLoad", |
| 126 app_window_count); | 126 app_window_count); |
| 127 UMA_HISTOGRAM_COUNTS_100("WindowManager.PopUpWindowCountPerLoad", | 127 UMA_HISTOGRAM_COUNTS_100("WindowManager.PopUpWindowCountPerLoad", |
| 128 popup_window_count); | 128 popup_window_count); |
| 129 UMA_HISTOGRAM_COUNTS_100("WindowManager.TabbedWindowCountPerLoad", | 129 UMA_HISTOGRAM_COUNTS_100("WindowManager.TabbedWindowCountPerLoad", |
| 130 tabbed_window_count); | 130 tabbed_window_count); |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace chrome | 133 } // namespace chrome |
| OLD | NEW |