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

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

Issue 11434074: browser: Move FindBrowserWithWebContents() into chrome namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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
« no previous file with comments | « chrome/browser/ui/browser_finder.h ('k') | chrome/browser/ui/browser_tab_restore_service_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_finder.cc
diff --git a/chrome/browser/ui/browser_finder.cc b/chrome/browser/ui/browser_finder.cc
index a881f2c10112000941407c13a9323400ae813257..859fb1109fc085bfa9b5ba174b56cbac70b9b2cd 100644
--- a/chrome/browser/ui/browser_finder.cc
+++ b/chrome/browser/ui/browser_finder.cc
@@ -185,6 +185,10 @@ Browser* FindBrowserWithWindow(gfx::NativeWindow window) {
return NULL;
}
+} // namespace browser
+
+namespace chrome {
+
Browser* FindBrowserWithWebContents(const WebContents* web_contents) {
DCHECK(web_contents);
for (TabContentsIterator it; !it.done(); ++it) {
@@ -194,10 +198,6 @@ Browser* FindBrowserWithWebContents(const WebContents* web_contents) {
return NULL;
}
-} // namespace browser
-
-namespace chrome {
-
Browser* FindLastActiveWithProfile(Profile* profile, HostDesktopType type) {
BrowserListImpl* list = BrowserListImpl::GetInstance(type);
// We are only interested in last active browsers, so we don't fall back to
« no previous file with comments | « chrome/browser/ui/browser_finder.h ('k') | chrome/browser/ui/browser_tab_restore_service_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698