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

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

Issue 12213091: Explicitly hardcode tab_drag_controller_interactive_uitest.cc to use the native desktop list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge up to r181832 Created 7 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_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.
« no previous file with comments | « chrome/browser/ui/browser_list_impl.h ('k') | chrome/browser/ui/views/tabs/tab_drag_controller_interactive_uitest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698