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

Unified Diff: chrome/browser/profile.cc

Issue 2858032: Display content settings applying to the current otr session only. (Closed)
Patch Set: updates Created 10 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
« no previous file with comments | « chrome/browser/profile.h ('k') | chrome/browser/views/options/content_exceptions_table_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/browser/profile.h ('k') | chrome/browser/views/options/content_exceptions_table_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698