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

Unified Diff: chrome/browser/ui/webui/ntp/new_tab_page_handler.h

Issue 8895016: ntp: track number of times a user switches pages in a single session (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo 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 | « no previous file | chrome/browser/ui/webui/ntp/new_tab_page_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/ntp/new_tab_page_handler.h
diff --git a/chrome/browser/ui/webui/ntp/new_tab_page_handler.h b/chrome/browser/ui/webui/ntp/new_tab_page_handler.h
index 599ee4ccae3a06784a2701ac506e95712b1fe623..bfbbbf48ebcf0765280ba9a8fd832dd2165b7e1f 100644
--- a/chrome/browser/ui/webui/ntp/new_tab_page_handler.h
+++ b/chrome/browser/ui/webui/ntp/new_tab_page_handler.h
@@ -16,8 +16,8 @@ class Profile;
// more specialized handler.
class NewTabPageHandler : public WebUIMessageHandler {
public:
- NewTabPageHandler() {}
- virtual ~NewTabPageHandler() {}
+ NewTabPageHandler();
+ virtual ~NewTabPageHandler();
// WebUIMessageHandler implementation.
virtual WebUIMessageHandler* Attach(WebUI* web_ui) OVERRIDE;
@@ -53,6 +53,9 @@ class NewTabPageHandler : public WebUIMessageHandler {
static void DismissIntroMessage(PrefService* prefs);
private:
+ // Tracks the number of times the user has switches pages (for UMA).
+ size_t page_switch_count_;
+
// The purpose of this enum is to track which page on the NTP is showing.
// The lower 10 bits of kNTPShownPage are used for the index within the page
// group, and the rest of the bits are used for the page group ID (defined
« no previous file with comments | « no previous file | chrome/browser/ui/webui/ntp/new_tab_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698