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 = |