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

Unified Diff: chrome/browser/ui/browser_list.cc

Issue 888843005: Closing a guest session clears all browsing history. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Handle tests Created 5 years, 10 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
Index: chrome/browser/ui/browser_list.cc
diff --git a/chrome/browser/ui/browser_list.cc b/chrome/browser/ui/browser_list.cc
index b9d6317144776ad97ce9f29b8b01318251cadead..671339b7e224eb4c69b1e93881b904dcad763653 100644
--- a/chrome/browser/ui/browser_list.cc
+++ b/chrome/browser/ui/browser_list.cc
@@ -215,8 +215,6 @@ bool BrowserList::IsOffTheRecordSessionActive() {
// static
bool BrowserList::IsOffTheRecordSessionActiveForProfile(Profile* profile) {
- if (profile->IsGuestSession())
- return true;
for (chrome::BrowserIterator it; !it.done(); it.Next()) {
if (it->profile()->IsSameProfile(profile) &&
it->profile()->IsOffTheRecord()) {

Powered by Google App Engine
This is Rietveld 408576698