diff options
author | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-08 17:45:25 +0000 |
---|---|---|
committer | akalin@chromium.org <akalin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-08 17:45:25 +0000 |
commit | 8a9c6c3401524c0a4b5d37d65335e9124885305a (patch) | |
tree | 4c5144a89deca05f4c599b6a356de7e549d2457b /chrome/browser/profiles/profile.cc | |
parent | d304b5ec1b16766ea2cb552a27dc14df848d6a0e (diff) | |
download | chromium_src-8a9c6c3401524c0a4b5d37d65335e9124885305a.zip chromium_src-8a9c6c3401524c0a4b5d37d65335e9124885305a.tar.gz chromium_src-8a9c6c3401524c0a4b5d37d65335e9124885305a.tar.bz2 |
[Sync] Clean up sync logging
Add GetDebugName() method to Profile. Use it in ProfileSyncServiceHarness,
SyncerThread, and LiveSyncExtensionHelper.
Change VLOG(1)s in SyncerThread to VLOG(2)s.
Turn on logging for the test server if VLOG is enabled for that file, and not just in general.
BUG=
TEST=
Review URL: http://codereview.chromium.org/7024058
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@88355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles/profile.cc')
-rw-r--r-- | chrome/browser/profiles/profile.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc index ad93f46..03f0113 100644 --- a/chrome/browser/profiles/profile.cc +++ b/chrome/browser/profiles/profile.cc @@ -171,6 +171,14 @@ net::URLRequestContextGetter* Profile::GetDefaultRequestContext() { return default_request_context_; } +std::string Profile::GetDebugName() { + std::string name = GetPath().BaseName().MaybeAsASCII(); + if (name.empty()) { + name = "UnknownProfile"; + } + return name; +} + bool Profile::IsGuestSession() { #if defined(OS_CHROMEOS) static bool is_guest_session = |