summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/browser_list.h
diff options
context:
space:
mode:
authormirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 23:15:25 +0000
committermirandac@chromium.org <mirandac@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-16 23:15:25 +0000
commitf11e34cedc9145b70765632369ae9f5984b95e2b (patch)
tree284dac266cc84e2815b01e53adb1f9f43f5ccb5d /chrome/browser/ui/browser_list.h
parent9bad05f778a1d813536cf6bde5f554936364f816 (diff)
downloadchromium_src-f11e34cedc9145b70765632369ae9f5984b95e2b.zip
chromium_src-f11e34cedc9145b70765632369ae9f5984b95e2b.tar.gz
chromium_src-f11e34cedc9145b70765632369ae9f5984b95e2b.tar.bz2
Change SelectFileDialog to refer to the last active profile for its new browser window, instead of the default profile, which will no longer be a valid concept in a multi-profile environment.
BUG=83792 TEST=SelectFileDialog operation doesn't change. Review URL: http://codereview.chromium.org/7150015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/browser_list.h')
-rw-r--r--chrome/browser/ui/browser_list.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/ui/browser_list.h b/chrome/browser/ui/browser_list.h
index 41924f7..caa2e2f 100644
--- a/chrome/browser/ui/browser_list.h
+++ b/chrome/browser/ui/browser_list.h
@@ -11,6 +11,7 @@
#include "base/observer_list.h"
#include "chrome/browser/ui/browser.h"
+#include "ui/gfx/native_widget_types.h"
// Stores a list of all Browser objects.
class BrowserList {
@@ -94,6 +95,9 @@ class BrowserList {
// browser currently exists.
static Browser* FindBrowserWithID(SessionID::id_type desired_id);
+ // Find the browser represented by |window| or NULL if not found.
+ static Browser* FindBrowserWithWindow(gfx::NativeWindow window);
+
// 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).