| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/browser_list.h" | 5 #include "chrome/browser/ui/browser_list.h" |
| 6 | 6 |
| 7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_iterator.h" | 9 #include "chrome/browser/ui/browser_iterator.h" |
| 10 #include "chrome/browser/ui/browser_list_impl.h" | 10 #include "chrome/browser/ui/browser_list_impl.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 } | 65 } |
| 66 } | 66 } |
| 67 | 67 |
| 68 // static | 68 // static |
| 69 void BrowserList::SetLastActive(Browser* browser) { | 69 void BrowserList::SetLastActive(Browser* browser) { |
| 70 chrome::BrowserListImpl::GetInstance(browser->host_desktop_type())-> | 70 chrome::BrowserListImpl::GetInstance(browser->host_desktop_type())-> |
| 71 SetLastActive(browser); | 71 SetLastActive(browser); |
| 72 } | 72 } |
| 73 | 73 |
| 74 // static | 74 // static |
| 75 BrowserList::const_reverse_iterator BrowserList::begin_last_active() { | |
| 76 return GetNativeList()->begin_last_active(); | |
| 77 } | |
| 78 | |
| 79 // static | |
| 80 BrowserList::const_reverse_iterator BrowserList::end_last_active() { | |
| 81 return GetNativeList()->end_last_active(); | |
| 82 } | |
| 83 | |
| 84 // static | |
| 85 bool BrowserList::IsOffTheRecordSessionActive() { | 75 bool BrowserList::IsOffTheRecordSessionActive() { |
| 86 return GetNativeList()->IsIncognitoWindowOpen(); | 76 return GetNativeList()->IsIncognitoWindowOpen(); |
| 87 } | 77 } |
| 88 | 78 |
| 89 // static | 79 // static |
| 90 bool BrowserList::IsOffTheRecordSessionActiveForProfile(Profile* profile) { | 80 bool BrowserList::IsOffTheRecordSessionActiveForProfile(Profile* profile) { |
| 91 return GetNativeList()->IsIncognitoWindowOpenForProfile(profile); | 81 return GetNativeList()->IsIncognitoWindowOpenForProfile(profile); |
| 92 } | 82 } |
| OLD | NEW |