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 |