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

Side by Side Diff: chrome/browser/prerender/prerender_origin.cc

Issue 2299993004: Migrate chrome/browser files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 years, 3 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
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/prerender/prerender_origin.h" 5 #include "chrome/browser/prerender/prerender_origin.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram_macros.h"
9 #include "chrome/browser/prerender/prerender_manager.h" 9 #include "chrome/browser/prerender/prerender_manager.h"
10 10
11 namespace prerender { 11 namespace prerender {
12 12
13 namespace { 13 namespace {
14 14
15 const char* kOriginNames[] = { 15 const char* kOriginNames[] = {
16 "[Deprecated] Link Rel Prerender (original)", 16 "[Deprecated] Link Rel Prerender (original)",
17 "[Deprecated] Omnibox (original)", 17 "[Deprecated] Omnibox (original)",
18 "GWS Prerender", 18 "GWS Prerender",
(...skipping 16 matching lines...) Expand all
35 35
36 } // namespace 36 } // namespace
37 37
38 const char* NameFromOrigin(Origin origin) { 38 const char* NameFromOrigin(Origin origin) {
39 DCHECK(static_cast<int>(origin) >= 0 && 39 DCHECK(static_cast<int>(origin) >= 0 &&
40 origin <= ORIGIN_MAX); 40 origin <= ORIGIN_MAX);
41 return kOriginNames[origin]; 41 return kOriginNames[origin];
42 } 42 }
43 43
44 } // namespace prerender 44 } // namespace prerender
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_manager.cc ('k') | chrome/browser/prerender/prerender_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698