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

Unified Diff: chrome/browser/ui/fullscreen_controller.cc

Issue 8919017: Split UserMetrics into API vs. implementation. Move API to content/public. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Version for commit (merged again). 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
Index: chrome/browser/ui/fullscreen_controller.cc
diff --git a/chrome/browser/ui/fullscreen_controller.cc b/chrome/browser/ui/fullscreen_controller.cc
index 4db0d80efb2d21bcb8b81329143e44dede93870e..1b527306b8117e979cdd10638adfe57b6734342e 100644
--- a/chrome/browser/ui/fullscreen_controller.cc
+++ b/chrome/browser/ui/fullscreen_controller.cc
@@ -15,8 +15,10 @@
#include "chrome/common/chrome_switches.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/tab_contents/tab_contents.h"
-#include "content/browser/user_metrics.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/browser/user_metrics.h"
+
+using content::UserMetricsAction;
FullscreenController::FullscreenController(BrowserWindow* window,
Profile* profile,
@@ -166,7 +168,7 @@ void FullscreenController::ToggleFullscreenMode(bool for_tab) {
tab_fullscreen_accepted_ = entering_fullscreen &&
GetFullscreenSetting(url) == CONTENT_SETTING_ALLOW;
} else {
- UserMetrics::RecordAction(UserMetricsAction("ToggleFullscreen"));
+ content::RecordAction(UserMetricsAction("ToggleFullscreen"));
}
if (entering_fullscreen)
window_->EnterFullscreen(url, GetFullscreenExitBubbleType());

Powered by Google App Engine
This is Rietveld 408576698