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

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

Issue 1548133002: Switch to standard integer types in chrome/browser/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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_final_status.h" 5 #include "chrome/browser/prerender/prerender_final_status.h"
6 6
7 #include "base/macros.h"
7 #include "chrome/browser/prerender/prerender_manager.h" 8 #include "chrome/browser/prerender/prerender_manager.h"
8 9
9 namespace prerender { 10 namespace prerender {
10 11
11 namespace { 12 namespace {
12 13
13 const char* kFinalStatusNames[] = { 14 const char* kFinalStatusNames[] = {
14 "Used", 15 "Used",
15 "Timed Out", 16 "Timed Out",
16 "Evicted", 17 "Evicted",
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 71
71 } // namespace 72 } // namespace
72 73
73 const char* NameFromFinalStatus(FinalStatus final_status) { 74 const char* NameFromFinalStatus(FinalStatus final_status) {
74 DCHECK_LT(static_cast<unsigned int>(final_status), 75 DCHECK_LT(static_cast<unsigned int>(final_status),
75 arraysize(kFinalStatusNames)); 76 arraysize(kFinalStatusNames));
76 return kFinalStatusNames[final_status]; 77 return kFinalStatusNames[final_status];
77 } 78 }
78 79
79 } // namespace prerender 80 } // namespace prerender
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_contents.cc ('k') | chrome/browser/prerender/prerender_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698