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

Unified Diff: chrome/app/chrome_dll_main.cc

Issue 1995005: Allows browser tests to run with recent change (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/boot_times_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_dll_main.cc
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc
index 9e2becc3d8ef0acc5520f04836c56f7463aeb1e0..2e2a20961a2c5dc3c97c2f23700c5f2c1ec9217e 100644
--- a/chrome/app/chrome_dll_main.cc
+++ b/chrome/app/chrome_dll_main.cc
@@ -399,8 +399,10 @@ int ChromeMain(int argc, char** argv) {
#endif
#if defined(OS_CHROMEOS)
// Output our start times.
- system("set -o noclobber ; cat /proc/uptime > /tmp/uptime-chrome-main");
- system("set -o noclobber ; cat /sys/block/sda/stat > /tmp/disk-chrome-main");
+ system("if [ ! -f /tmp/uptime-chrome-main ]; "
+ "then cat /proc/uptime > /tmp/uptime-chrome-main ; fi");
+ system("if [ ! -f /tmp/disk-chrome-main ]; "
+ "then cat /sys/block/sda/stat > /tmp/disk-chrome-main ; fi");
#endif
#if defined(OS_MACOSX)
// TODO(mark): Some of these things ought to be handled in chrome_exe_main.mm.
« no previous file with comments | « no previous file | chrome/browser/chromeos/boot_times_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698