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

Side by Side Diff: components/keyed_service/core/dependency_graph.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/keyed_service/core/dependency_graph.h" 5 #include "components/keyed_service/core/dependency_graph.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include <deque> 10 #include <deque>
9 #include <iterator> 11 #include <iterator>
10 12
11 #include "base/strings/string_piece.h" 13 #include "base/strings/string_piece.h"
12 14
13 namespace { 15 namespace {
14 16
15 // Escapes |id| to be a valid ID in the DOT format [1]. This is implemented as 17 // Escapes |id| to be a valid ID in the DOT format [1]. This is implemented as
16 // enclosing the string in quotation marks, and escaping any quotation marks 18 // enclosing the string in quotation marks, and escaping any quotation marks
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } 179 }
178 180
179 result.append("\n /* Toplevel node */\n"); 181 result.append("\n /* Toplevel node */\n");
180 result.append(" "); 182 result.append(" ");
181 result.append(escaped_toplevel_name); 183 result.append(escaped_toplevel_name);
182 result.append(" [shape=box];\n"); 184 result.append(" [shape=box];\n");
183 185
184 result.append("}\n"); 186 result.append("}\n");
185 return result; 187 return result;
186 } 188 }
OLDNEW
« no previous file with comments | « components/keyed_service/core/dependency_graph.h ('k') | components/keyed_service/core/dependency_graph_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698