Index: chrome/browser/profile.cc |
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc |
index a2ddb0b2ab80b884fe86b942f54190f4a76358f7..e9b76d9c22ff773c2afc94e2200b3ceaa0fd2377 100644 |
--- a/chrome/browser/profile.cc |
+++ b/chrome/browser/profile.cc |
@@ -346,6 +346,10 @@ class OffTheRecordProfileImpl : public Profile, |
NOTREACHED(); |
} |
+ virtual bool HasOffTheRecordProfile() { |
+ return true; |
+ } |
+ |
virtual Profile* GetOriginalProfile() { |
return profile_; |
} |
@@ -1024,6 +1028,10 @@ void ProfileImpl::DestroyOffTheRecordProfile() { |
off_the_record_profile_.reset(); |
} |
+bool ProfileImpl::HasOffTheRecordProfile() { |
+ return off_the_record_profile_.get() != NULL; |
+} |
+ |
Profile* ProfileImpl::GetOriginalProfile() { |
return this; |
} |