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

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

Issue 382133003: Refactored ExtensionUninstallDialog to take a NativeWindow instead of a Browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Small change: Display the default icon while the real icon is being loaded Created 6 years, 5 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
Index: chrome/browser/ui/browser_finder.cc
diff --git a/chrome/browser/ui/browser_finder.cc b/chrome/browser/ui/browser_finder.cc
index 92bb2f8432febfda4a37523f411682be6d4dfec4..99e8a1b34415359e80fd7d3f79d904401e2fbeb2 100644
--- a/chrome/browser/ui/browser_finder.cc
+++ b/chrome/browser/ui/browser_finder.cc
@@ -158,6 +158,12 @@ Browser* FindBrowserWithWindow(gfx::NativeWindow window) {
return NULL;
}
+gfx::NativeWindow FindWindowForBrowser(Browser* browser) {
tapted 2014/07/24 00:35:36 I don't think this belongs here (it's not really a
sashab 2014/07/24 03:03:36 Done.
+ if (browser && browser->window())
+ return browser->window()->GetNativeWindow();
+ return NULL;
+}
+
Browser* FindBrowserWithWebContents(const WebContents* web_contents) {
DCHECK(web_contents);
for (TabContentsIterator it; !it.done(); it.Next()) {

Powered by Google App Engine
This is Rietveld 408576698