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

Side by Side Diff: chrome/browser/chromeos/boot_times_recorder.cc

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (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/chromeos/boot_times_recorder.h" 5 #include "chrome/browser/chromeos/boot_times_recorder.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <vector> 10 #include <vector>
8 11
9 #include "base/bind.h" 12 #include "base/bind.h"
10 #include "base/command_line.h" 13 #include "base/command_line.h"
11 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
12 #include "base/files/file_util.h" 15 #include "base/files/file_util.h"
13 #include "base/json/json_reader.h" 16 #include "base/json/json_reader.h"
14 #include "base/json/json_writer.h" 17 #include "base/json/json_writer.h"
15 #include "base/lazy_instance.h" 18 #include "base/lazy_instance.h"
16 #include "base/location.h" 19 #include "base/location.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // Dir log{in,out} logs are located in. 109 // Dir log{in,out} logs are located in.
107 static const base::FilePath::CharType kLoginLogPath[] = 110 static const base::FilePath::CharType kLoginLogPath[] =
108 FPL("/home/chronos/user"); 111 FPL("/home/chronos/user");
109 // Prefix for the time measurement files. 112 // Prefix for the time measurement files.
110 static const base::FilePath::CharType kUptimePrefix[] = FPL("uptime-"); 113 static const base::FilePath::CharType kUptimePrefix[] = FPL("uptime-");
111 // Prefix for the disk usage files. 114 // Prefix for the disk usage files.
112 static const base::FilePath::CharType kDiskPrefix[] = FPL("disk-"); 115 static const base::FilePath::CharType kDiskPrefix[] = FPL("disk-");
113 // Name of the time that Chrome's main() is called. 116 // Name of the time that Chrome's main() is called.
114 static const base::FilePath::CharType kChromeMain[] = FPL("chrome-main"); 117 static const base::FilePath::CharType kChromeMain[] = FPL("chrome-main");
115 // Delay in milliseconds before writing the login times to disk. 118 // Delay in milliseconds before writing the login times to disk.
116 static const int64 kLoginTimeWriteDelayMs = 3000; 119 static const int64_t kLoginTimeWriteDelayMs = 3000;
117 120
118 // Names of login stats files. 121 // Names of login stats files.
119 static const base::FilePath::CharType kLoginSuccess[] = FPL("login-success"); 122 static const base::FilePath::CharType kLoginSuccess[] = FPL("login-success");
120 static const base::FilePath::CharType kChromeFirstRender[] = 123 static const base::FilePath::CharType kChromeFirstRender[] =
121 FPL("chrome-first-render"); 124 FPL("chrome-first-render");
122 125
123 // Names of login UMA values. 126 // Names of login UMA values.
124 static const char kUmaLogin[] = "BootTime.Login"; 127 static const char kUmaLogin[] = "BootTime.Login";
125 static const char kUmaLoginNewUser[] = "BootTime.LoginNewUser"; 128 static const char kUmaLoginNewUser[] = "BootTime.LoginNewUser";
126 static const char kUmaLoginPrefix[] = "BootTime."; 129 static const char kUmaLoginPrefix[] = "BootTime.";
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 GetRenderWidgetHost(&web_contents->GetController()); 525 GetRenderWidgetHost(&web_contents->GetController());
523 render_widget_hosts_loading_.erase(render_widget_host); 526 render_widget_hosts_loading_.erase(render_widget_host);
524 break; 527 break;
525 } 528 }
526 default: 529 default:
527 break; 530 break;
528 } 531 }
529 } 532 }
530 533
531 } // namespace chromeos 534 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/boot_times_recorder.h ('k') | chrome/browser/chromeos/camera_detector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698