Index: chrome/browser/profiles/profile.cc |
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc |
index ad93f4667d8acaa270008f3502d3562714f111ed..03f01130783c1a47a25112e4b05a2e8a5225a70f 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 = |