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

Unified Diff: chrome/browser/sync/engine/sync_scheduler.cc

Issue 7190001: [Sync] Split DirectoryChangeListener for thread-safety (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix copyright Created 9 years, 6 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
« no previous file with comments | « chrome/browser/sync/engine/process_updates_command.cc ('k') | chrome/browser/sync/engine/syncapi.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/engine/sync_scheduler.cc
diff --git a/chrome/browser/sync/engine/sync_scheduler.cc b/chrome/browser/sync/engine/sync_scheduler.cc
index 507fc89ed597b32af617aee4dd3fc94b7f375167..20968c6ce7b392e0f280b2bb58c3c985a8c6d4d8 100644
--- a/chrome/browser/sync/engine/sync_scheduler.cc
+++ b/chrome/browser/sync/engine/sync_scheduler.cc
@@ -14,6 +14,7 @@
#include "base/tracked.h"
#include "chrome/browser/sync/engine/syncer.h"
#include "chrome/browser/sync/protocol/proto_enum_conversions.h"
+#include "chrome/browser/sync/util/logging.h"
using base::TimeDelta;
using base::TimeTicks;
@@ -108,27 +109,6 @@ GetUpdatesCallerInfo::GetUpdatesSource GetSourceFromReason(
SyncScheduler::WaitInterval::WaitInterval(Mode mode, TimeDelta length)
: mode(mode), had_nudge(false), length(length) { }
-// Helper functions/macros to do logging with a Location object.
-
-namespace {
-
-bool VlogIsOn(const tracked_objects::Location& from_here,
- int verbose_level) {
- return (verbose_level <=
- logging::GetVlogLevelHelper(
- from_here.file_name(), ::strlen(from_here.file_name())));
-}
-
-} // namespace
-
-#define VLOG_LOC_STREAM(from_here, verbose_level) \
- logging::LogMessage(from_here.file_name(), from_here.line_number(), \
- -verbose_level).stream()
-
-#define VLOG_LOC(from_here, verbose_level) \
- LAZY_STREAM(VLOG_LOC_STREAM(from_here, verbose_level), \
- VLOG_IS_ON(verbose_level) || VlogIsOn(from_here, verbose_level))
-
// Helper macros to log with the syncer thread name; useful when there
// are multiple syncer threads involved.
« no previous file with comments | « chrome/browser/sync/engine/process_updates_command.cc ('k') | chrome/browser/sync/engine/syncapi.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698