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

Unified Diff: chrome/browser/prerender/prerender_origin.cc

Issue 11028037: Fix prerender histograms for multiple prerender case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... new tests, indent. Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/prerender/prerender_origin.h ('k') | chrome/browser/prerender/prerender_tab_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prerender/prerender_origin.cc
diff --git a/chrome/browser/prerender/prerender_origin.cc b/chrome/browser/prerender/prerender_origin.cc
index 084120dd2b18a212af3c62eeee8262a3addd25e1..d22a3adbd39350ff9a9a65e916ad97ef6c6dd785 100644
--- a/chrome/browser/prerender/prerender_origin.cc
+++ b/chrome/browser/prerender/prerender_origin.cc
@@ -18,11 +18,13 @@ const char* kOriginNames[] = {
"[Deprecated] Omnibox (conservative)",
"[Deprecated] Omnibox (exact)",
"Omnibox",
- "Max"
+ "None",
+ "Max",
};
COMPILE_ASSERT(arraysize(kOriginNames) == ORIGIN_MAX + 1,
PrerenderOrigin_name_count_mismatch);
-}
+
+} // namespace
const char* NameFromOrigin(Origin origin) {
DCHECK(static_cast<int>(origin) >= 0 &&
« no previous file with comments | « chrome/browser/prerender/prerender_origin.h ('k') | chrome/browser/prerender/prerender_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698