Index: chrome/browser/ui/webui/metrics_handler.cc |
=================================================================== |
--- chrome/browser/ui/webui/metrics_handler.cc (revision 116011) |
+++ chrome/browser/ui/webui/metrics_handler.cc (working copy) |
@@ -13,12 +13,13 @@ |
#include "chrome/browser/metrics/metric_event_duration_details.h" |
#include "chrome/browser/ui/webui/chrome_web_ui.h" |
#include "chrome/common/chrome_notification_types.h" |
-#include "content/browser/tab_contents/tab_contents.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/user_metrics.h" |
+#include "content/public/browser/web_contents.h" |
using base::ListValue; |
using content::UserMetricsAction; |
+using content::WebContents; |
MetricsHandler::MetricsHandler() {} |
MetricsHandler::~MetricsHandler() {} |
@@ -77,7 +78,7 @@ |
void MetricsHandler::HandleLogEventTime(const ListValue* args) { |
std::string event_name = UTF16ToUTF8(ExtractStringValue(args)); |
- TabContents* tab = web_ui()->tab_contents(); |
+ WebContents* tab = web_ui()->web_contents(); |
// Not all new tab pages get timed. In those cases, we don't have a |
// new_tab_start_time_. |
@@ -101,6 +102,6 @@ |
} |
content::NotificationService::current()->Notify( |
chrome::NOTIFICATION_METRIC_EVENT_DURATION, |
- content::Source<TabContents>(tab), |
+ content::Source<WebContents>(tab), |
content::Details<MetricEventDurationDetails>(&details)); |
} |