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

Side by Side Diff: tools/gn/command_gen.cc

Issue 644433003: Type conversion fixes, tools/ edition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | tools/gn/filesystem_utils.cc » ('j') | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "base/atomicops.h" 5 #include "base/atomicops.h"
6 #include "base/bind.h" 6 #include "base/bind.h"
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/timer/elapsed_timer.h" 9 #include "base/timer/elapsed_timer.h"
10 #include "tools/gn/build_settings.h" 10 #include "tools/gn/build_settings.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 if (!CommandLine::ForCurrentProcess()->HasSwitch(kSwitchQuiet)) { 108 if (!CommandLine::ForCurrentProcess()->HasSwitch(kSwitchQuiet)) {
109 OutputString("Done. ", DECORATION_GREEN); 109 OutputString("Done. ", DECORATION_GREEN);
110 110
111 std::string stats = "Wrote " + 111 std::string stats = "Wrote " +
112 base::IntToString(static_cast<int>(write_counter)) + 112 base::IntToString(static_cast<int>(write_counter)) +
113 " targets from " + 113 " targets from " +
114 base::IntToString( 114 base::IntToString(
115 setup->scheduler().input_file_manager()->GetInputFileCount()) + 115 setup->scheduler().input_file_manager()->GetInputFileCount()) +
116 " files in " + 116 " files in " +
117 base::IntToString(elapsed_time.InMilliseconds()) + "ms\n"; 117 base::Int64ToString(elapsed_time.InMilliseconds()) + "ms\n";
118 OutputString(stats); 118 OutputString(stats);
119 } 119 }
120 120
121 return 0; 121 return 0;
122 } 122 }
123 123
124 } // namespace commands 124 } // namespace commands
OLDNEW
« no previous file with comments | « no previous file | tools/gn/filesystem_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698