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

Unified Diff: chrome/browser/profiles/profile.cc

Issue 7024058: [Sync] Clean up sync logging (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: even more logging 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
Index: chrome/browser/profiles/profile.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index f507e5585acbb1303df23fac0fbb3f8febfb0942..511684de3824cdd242cee735f162ec3203118cea 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 =

Powered by Google App Engine
This is Rietveld 408576698