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

Side by Side Diff: chrome/browser/ui/webui/metrics_handler.cc

Issue 19073003: Update some includes of chrome_notification_types.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/webui/metrics_handler.h" 5 #include "chrome/browser/ui/webui/metrics_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/chrome_notification_types.h"
13 #include "chrome/browser/metrics/metric_event_duration_details.h" 14 #include "chrome/browser/metrics/metric_event_duration_details.h"
14 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" 15 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
15 #include "chrome/common/chrome_notification_types.h"
16 #include "content/public/browser/notification_service.h" 16 #include "content/public/browser/notification_service.h"
17 #include "content/public/browser/user_metrics.h" 17 #include "content/public/browser/user_metrics.h"
18 #include "content/public/browser/web_contents.h" 18 #include "content/public/browser/web_contents.h"
19 #include "content/public/browser/web_ui.h" 19 #include "content/public/browser/web_ui.h"
20 20
21 using base::ListValue; 21 using base::ListValue;
22 using content::UserMetricsAction; 22 using content::UserMetricsAction;
23 using content::WebContents; 23 using content::WebContents;
24 24
25 MetricsHandler::MetricsHandler() {} 25 MetricsHandler::MetricsHandler() {}
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 CoreTabHelper* core_tab_helper = CoreTabHelper::FromWebContents(tab); 102 CoreTabHelper* core_tab_helper = CoreTabHelper::FromWebContents(tab);
103 core_tab_helper->set_new_tab_start_time(base::TimeTicks()); 103 core_tab_helper->set_new_tab_start_time(base::TimeTicks());
104 } else { 104 } else {
105 NOTREACHED(); 105 NOTREACHED();
106 } 106 }
107 content::NotificationService::current()->Notify( 107 content::NotificationService::current()->Notify(
108 chrome::NOTIFICATION_METRIC_EVENT_DURATION, 108 chrome::NOTIFICATION_METRIC_EVENT_DURATION,
109 content::Source<WebContents>(tab), 109 content::Source<WebContents>(tab),
110 content::Details<MetricEventDurationDetails>(&details)); 110 content::Details<MetricEventDurationDetails>(&details));
111 } 111 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698