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

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

Issue 12213074: BrowserList iterator methods have been phased out, delete them! (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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') | no next file » | 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_list_impl.h" 9 #include "chrome/browser/ui/browser_list_impl.h"
10 #include "chrome/browser/ui/browser_list_observer.h" 10 #include "chrome/browser/ui/browser_list_observer.h"
(...skipping 28 matching lines...) Expand all
39 // static 39 // static
40 void BrowserList::RemoveObserver(chrome::BrowserListObserver* observer) { 40 void BrowserList::RemoveObserver(chrome::BrowserListObserver* observer) {
41 GetNativeList()->RemoveObserver(observer); 41 GetNativeList()->RemoveObserver(observer);
42 } 42 }
43 43
44 void BrowserList::CloseAllBrowsersWithProfile(Profile* profile) { 44 void BrowserList::CloseAllBrowsersWithProfile(Profile* profile) {
45 GetNativeList()->CloseAllBrowsersWithProfile(profile); 45 GetNativeList()->CloseAllBrowsersWithProfile(profile);
46 } 46 }
47 47
48 // static 48 // static
49 BrowserList::const_iterator BrowserList::begin() {
50 return GetNativeList()->begin();
51 }
52
53 // static
54 BrowserList::const_iterator BrowserList::end() {
55 return GetNativeList()->end();
56 }
57
58 // static
59 bool BrowserList::empty() { 49 bool BrowserList::empty() {
60 return GetNativeList()->empty(); 50 return GetNativeList()->empty();
61 } 51 }
62 52
63 // static 53 // static
64 size_t BrowserList::size() { 54 size_t BrowserList::size() {
65 return GetNativeList()->size(); 55 return GetNativeList()->size();
66 } 56 }
67 57
68 // static 58 // static
(...skipping 14 matching lines...) Expand all
83 73
84 // static 74 // 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') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698