Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3732)

Unified Diff: chrome/browser/ui/webui/metrics_handler.cc

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/media/media_internals_ui.cc ('k') | chrome/browser/ui/webui/net_internals_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
« no previous file with comments | « chrome/browser/ui/webui/media/media_internals_ui.cc ('k') | chrome/browser/ui/webui/net_internals_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698