From a95631cb9427e4d20c243dcd0f36da3fd3e7cb55 Mon Sep 17 00:00:00 2001 From: "twiz@google.com" Date: Thu, 10 Dec 2009 01:59:11 +0000 Subject: A collection of fixes allowing the chrome.experimental.popup.* set of APIs to function in circumstances where there is no Browser instance present. This is a symptom of a tab-contents view hosted in an ExternalTabContainer.The major change here is the removal of the explicit dependency on a Browser instance across all of the delegates involved when showing a pop-up API. I modified the following delegates:- ExtensionPopupHost::Delegate- TabContentsDelegate- ExtensionFunctionDispatcher::DelegateBecause the pop-up requires a Profile, and a gfx::NativeWindow, I added methods to the above interfaces to provide them.BUG=noneTEST=ExtensionApiTest.FLAKY_Popup Review URL: http://codereview.chromium.org/434046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34219 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/dom_ui/dom_ui.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/dom_ui/dom_ui.h') diff --git a/chrome/browser/dom_ui/dom_ui.h b/chrome/browser/dom_ui/dom_ui.h index ad4c2dc..2156b30 100644 --- a/chrome/browser/dom_ui/dom_ui.h +++ b/chrome/browser/dom_ui/dom_ui.h @@ -111,7 +111,7 @@ class DOMUI { ThemeProvider* GetThemeProvider() const; - TabContents* tab_contents() { return tab_contents_; } + TabContents* tab_contents() const { return tab_contents_; } Profile* GetProfile(); -- cgit v1.1