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

Unified Diff: chrome/browser/sync/util/logging.cc

Issue 7778033: Add trace code to track all posted tasks in message_loop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
« chrome/browser/sync/util/logging.h ('K') | « chrome/browser/sync/util/logging.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/util/logging.cc
diff --git a/chrome/browser/sync/util/logging.cc b/chrome/browser/sync/util/logging.cc
index 2951f8ccaa6d39a61ac99269795222201cc212cc..b9b3d96e420cf6628f9016b82ea8eb2d0e39c00e 100644
--- a/chrome/browser/sync/util/logging.cc
+++ b/chrome/browser/sync/util/logging.cc
@@ -4,15 +4,17 @@
#include "chrome/browser/sync/util/logging.h"
+#include "base/string_piece.h"
#include "base/tracked.h"
namespace browser_sync {
bool VlogIsOnForLocation(const tracked_objects::Location& from_here,
int verbose_level) {
+ const base::StringPiece& file = from_here.file_name();
return (verbose_level <=
logging::GetVlogLevelHelper(
- from_here.file_name(), ::strlen(from_here.file_name())));
+ file.data(), file.size() + 1));
}
} // namespace browser_sync
« chrome/browser/sync/util/logging.h ('K') | « chrome/browser/sync/util/logging.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698