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

Unified Diff: chrome/browser/ui/browser_list.h

Issue 8227038: Sync Promo: Close browser tab when closing promo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix merge issues Created 9 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/ui/browser_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser_list.h
diff --git a/chrome/browser/ui/browser_list.h b/chrome/browser/ui/browser_list.h
index b926083269d004a595932d6be214a42a11267370..447f6cb907cb255bfbb90baad7af1f46d35c752a 100644
--- a/chrome/browser/ui/browser_list.h
+++ b/chrome/browser/ui/browser_list.h
@@ -13,6 +13,8 @@
#include "chrome/browser/ui/browser.h"
#include "ui/gfx/native_widget_types.h"
+class TabContents;
+
// Stores a list of all Browser objects.
class BrowserList {
public:
@@ -98,6 +100,10 @@ class BrowserList {
// Find the browser represented by |window| or NULL if not found.
static Browser* FindBrowserWithWindow(gfx::NativeWindow window);
+ // Find the browser containing |tab_contents| or NULL if none is found.
+ // |tab_contents| must not be NULL.
+ static Browser* FindBrowserWithTabContents(TabContents* tab_contents);
+
// Checks if the browser can be automatically restarted to install upgrades
// The browser can be automatically restarted when:
// 1. It's in the background mode (no visible windows).
« no previous file with comments | « no previous file | chrome/browser/ui/browser_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698