summaryrefslogtreecommitdiffstats
path: root/chrome/browser/profile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/profile.cc')
-rw-r--r--chrome/browser/profile.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index 08b3260..a290fa0 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -138,6 +138,11 @@ class OffTheRecordProfileImpl : public Profile,
return this;
}
+ virtual void DestroyOffTheRecordProfile() {
+ // Suicide is bad!
+ NOTREACHED();
+ }
+
virtual Profile* GetOriginalProfile() {
return profile_;
}
@@ -504,6 +509,10 @@ Profile* ProfileImpl::GetOffTheRecordProfile() {
return off_the_record_profile_.get();
}
+void ProfileImpl::DestroyOffTheRecordProfile() {
+ off_the_record_profile_.reset();
+}
+
Profile* ProfileImpl::GetOriginalProfile() {
return this;
}