Index: chrome/browser/ui/browser_list_impl.cc |
diff --git a/chrome/browser/ui/browser_list_impl.cc b/chrome/browser/ui/browser_list_impl.cc |
index 06f27c1d0b614ff2d735c608ddc631d81ac8d497..f26f1f50a39b1759bf110788afb00dcdb69867ff 100644 |
--- a/chrome/browser/ui/browser_list_impl.cc |
+++ b/chrome/browser/ui/browser_list_impl.cc |
@@ -111,13 +111,13 @@ void BrowserListImpl::SetLastActive(Browser* browser) { |
OnBrowserSetLastActive(browser)); |
} |
-Browser* BrowserListImpl::GetLastActive() { |
+Browser* BrowserListImpl::GetLastActive() const { |
if (!last_active_browsers_.empty()) |
return *(last_active_browsers_.rbegin()); |
return NULL; |
} |
-bool BrowserListImpl::IsIncognitoWindowOpen() { |
+bool BrowserListImpl::IsIncognitoWindowOpen() const { |
for (BrowserListImpl::const_iterator i = BrowserListImpl::begin(); |
i != BrowserListImpl::end(); ++i) { |
if ((*i)->profile()->IsOffTheRecord()) |
@@ -126,7 +126,7 @@ bool BrowserListImpl::IsIncognitoWindowOpen() { |
return false; |
} |
-bool BrowserListImpl::IsIncognitoWindowOpenForProfile(Profile* profile) { |
+bool BrowserListImpl::IsIncognitoWindowOpenForProfile(Profile* profile) const { |
#if defined(OS_CHROMEOS) |
// In ChromeOS, we assume that the default profile is always valid, so if |
// we are in guest mode, keep the OTR profile active so it won't be deleted. |