Consider any type of browser as the current window in extension APIs.

This fixes a regression so that extension APIs consider any type of browser (rather than only tabbed ones) when searching for the current window.

BUG=53077
TEST=none


Review URL: http://codereview.chromium.org/9251018

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118317 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/extension_function_dispatcher.cc b/chrome/browser/extensions/extension_function_dispatcher.cc
index 107911b..104264d 100644
--- a/chrome/browser/extensions/extension_function_dispatcher.cc
+++ b/chrome/browser/extensions/extension_function_dispatcher.cc
@@ -653,7 +653,7 @@
   // |include_incognito|.
   Profile* profile = Profile::FromBrowserContext(
       render_view_host->process()->GetBrowserContext());
-  browser = BrowserList::FindTabbedBrowser(profile, include_incognito);
+  browser = BrowserList::FindAnyBrowser(profile, include_incognito);
 
   // NOTE(rafaelw): This can return NULL in some circumstances. In particular,
   // a background_page onload chrome.tabs api call can make it into here