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

Side by Side Diff: base/debug/trace_event_impl.cc

Issue 15742012: pull constant out of trace_event_impl for split_link (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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 | Annotate | Revision Log
« no previous file with comments | « base/base.gypi ('k') | base/debug/trace_event_impl_constants.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/debug/trace_event_impl.h" 5 #include "base/debug/trace_event_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/debug/leak_annotations.h" 10 #include "base/debug/leak_annotations.h"
(...skipping 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 // Don't allow empty tokens, nor tokens with leading or trailing space. 1316 // Don't allow empty tokens, nor tokens with leading or trailing space.
1317 DCHECK(!CategoryFilter::IsEmptyOrContainsLeadingOrTrailingWhitespace( 1317 DCHECK(!CategoryFilter::IsEmptyOrContainsLeadingOrTrailingWhitespace(
1318 category_group_token)) 1318 category_group_token))
1319 << "Disallowed category string"; 1319 << "Disallowed category string";
1320 if (MatchPattern(category_group_token.c_str(), category)) 1320 if (MatchPattern(category_group_token.c_str(), category))
1321 return true; 1321 return true;
1322 } 1322 }
1323 return false; 1323 return false;
1324 } 1324 }
1325 1325
1326 // Enable everything but debug and test categories by default.
1327 const char* CategoryFilter::kDefaultCategoryFilterString = "-*Debug,-*Test";
1328
1329 CategoryFilter::CategoryFilter(const std::string& filter_string) { 1326 CategoryFilter::CategoryFilter(const std::string& filter_string) {
1330 if (!filter_string.empty()) 1327 if (!filter_string.empty())
1331 Initialize(filter_string); 1328 Initialize(filter_string);
1332 else 1329 else
1333 Initialize(CategoryFilter::kDefaultCategoryFilterString); 1330 Initialize(CategoryFilter::kDefaultCategoryFilterString);
1334 } 1331 }
1335 1332
1336 CategoryFilter::CategoryFilter(const CategoryFilter& cf) 1333 CategoryFilter::CategoryFilter(const CategoryFilter& cf)
1337 : included_(cf.included_), 1334 : included_(cf.included_),
1338 disabled_(cf.disabled_), 1335 disabled_(cf.disabled_),
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
1502 NULL, // arg_names 1499 NULL, // arg_names
1503 NULL, // arg_types 1500 NULL, // arg_types
1504 NULL, // arg_values 1501 NULL, // arg_values
1505 NULL, // convertable values 1502 NULL, // convertable values
1506 TRACE_EVENT_FLAG_NONE); // flags 1503 TRACE_EVENT_FLAG_NONE); // flags
1507 } 1504 }
1508 } 1505 }
1509 1506
1510 } // namespace trace_event_internal 1507 } // namespace trace_event_internal
1511 1508
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/debug/trace_event_impl_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698