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

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

Issue 2104008: Fix new gcc error. This only happens on the ARM build, using (Closed)
Patch Set: Created 10 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_loader.h" 5 #include "chrome/browser/chromeos/boot_times_loader.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_path.h" 10 #include "base/file_path.h"
11 #include "base/file_util.h" 11 #include "base/file_util.h"
12 #include "base/message_loop.h" 12 #include "base/message_loop.h"
13 #include "base/process_util.h" 13 #include "base/process_util.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/thread.h" 15 #include "base/thread.h"
16 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
17 #include "chrome/browser/chrome_thread.h" 17 #include "chrome/browser/chrome_thread.h"
18 #include "chrome/common/chrome_switches.h" 18 #include "chrome/common/chrome_switches.h"
19 19
20 namespace { 20 namespace {
21 21
22 typedef struct Stats { 22 typedef struct Stats {
sky 2010/05/19 19:36:24 You should nuke the typedef entirely and just have
23 std::string uptime; 23 std::string uptime;
24 std::string disk; 24 std::string disk;
25 25
26 Stats() : uptime(std::string()), disk(std::string()) {} 26 Stats() : uptime(std::string()), disk(std::string()) {}
27 }; 27 } Stats;
28 28
29 } 29 }
30 30
31 namespace chromeos { 31 namespace chromeos {
32 32
33 // File uptime logs are located in. 33 // File uptime logs are located in.
34 static const char kLogPath[] = "/tmp"; 34 static const char kLogPath[] = "/tmp";
35 // Prefix for the time measurement files. 35 // Prefix for the time measurement files.
36 static const char kUptimePrefix[] = "uptime-"; 36 static const char kUptimePrefix[] = "uptime-";
37 // Prefix for the disk usage files. 37 // Prefix for the disk usage files.
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 void BootTimesLoader::SaveChromeMainStats() { 172 void BootTimesLoader::SaveChromeMainStats() {
173 chrome_main_stats_ = GetCurrentStats(); 173 chrome_main_stats_ = GetCurrentStats();
174 } 174 }
175 175
176 void BootTimesLoader::RecordChromeMainStats() { 176 void BootTimesLoader::RecordChromeMainStats() {
177 RecordStats(kChromeMain, chrome_main_stats_); 177 RecordStats(kChromeMain, chrome_main_stats_);
178 } 178 }
179 179
180 } // namespace chromeos 180 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698