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

Side by Side Diff: chrome/browser/ui/browser_list.cc

Issue 12262019: Replace static/native-desktop-only BrowserList::const_reverse_iterator by desktop specific ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: chrome_launcher_controller_per_app_unittest should be creating browsers on the ash desktop 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/browser_list.h ('k') | chrome/browser/ui/window_sizer/window_sizer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_list.h ('k') | chrome/browser/ui/window_sizer/window_sizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698