OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/vlog.h" | 5 #include "base/vlog.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string_number_conversions.h" | |
10 #include "base/string_split.h" | 9 #include "base/string_split.h" |
| 10 #include "base/strings/string_number_conversions.h" |
11 | 11 |
12 namespace logging { | 12 namespace logging { |
13 | 13 |
14 const int VlogInfo::kDefaultVlogLevel = 0; | 14 const int VlogInfo::kDefaultVlogLevel = 0; |
15 | 15 |
16 struct VlogInfo::VmodulePattern { | 16 struct VlogInfo::VmodulePattern { |
17 enum MatchTarget { MATCH_MODULE, MATCH_FILE }; | 17 enum MatchTarget { MATCH_MODULE, MATCH_FILE }; |
18 | 18 |
19 explicit VmodulePattern(const std::string& pattern); | 19 explicit VmodulePattern(const std::string& pattern); |
20 | 20 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 if (MatchVlogPattern(s, p)) | 168 if (MatchVlogPattern(s, p)) |
169 return true; | 169 return true; |
170 s.remove_prefix(1); | 170 s.remove_prefix(1); |
171 } | 171 } |
172 | 172 |
173 // Otherwise, we couldn't find a match. | 173 // Otherwise, we couldn't find a match. |
174 return false; | 174 return false; |
175 } | 175 } |
176 | 176 |
177 } // namespace | 177 } // namespace |
OLD | NEW |