diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-19 15:54:21 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-19 15:54:21 +0000 |
commit | 4eb4ec079921e968d446fa8086aeb862240da313 (patch) | |
tree | fb683b4cef43abdd175644965b15865228ac7d8c /ui | |
parent | 6c75c71e79b70dcf32982b1da3e219c277872162 (diff) | |
download | chromium_src-4eb4ec079921e968d446fa8086aeb862240da313.zip chromium_src-4eb4ec079921e968d446fa8086aeb862240da313.tar.gz chromium_src-4eb4ec079921e968d446fa8086aeb862240da313.tar.bz2 |
Remove BrowserList::GetLastActive usage from WebUI pages. I've plumbed the TabContents to the page bubble code so that the webui certificate viewer can get the Browser from it.
BUG=129187
Review URL: https://chromiumcodereview.appspot.com/10554010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142963 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r-- | ui/web_dialogs/constrained_web_dialog_ui.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/web_dialogs/constrained_web_dialog_ui.h b/ui/web_dialogs/constrained_web_dialog_ui.h index 63b1bdd..bf60c33 100644 --- a/ui/web_dialogs/constrained_web_dialog_ui.h +++ b/ui/web_dialogs/constrained_web_dialog_ui.h @@ -13,7 +13,6 @@ class ConstrainedWindow; class Profile; class TabContents; -typedef TabContents TabContentsWrapper; class WebDialogWebContentsDelegate; namespace base { @@ -42,10 +41,12 @@ class WEB_DIALOGS_EXPORT ConstrainedWebDialogDelegate { virtual void ReleaseTabContentsOnDialogClose() = 0; // Returns the ConstrainedWindow. + // TODO: fix this function name and the one below to conform to the style + // guide (i.e. GetWindow, GetTab). virtual ConstrainedWindow* window() = 0; - // Returns the TabContentsWrapper owned by the constrained window. - virtual TabContentsWrapper* tab() = 0; + // Returns the TabContents owned by the constrained window. + virtual TabContents* tab() = 0; protected: virtual ~ConstrainedWebDialogDelegate() {} @@ -100,7 +101,7 @@ ConstrainedWebDialogDelegate* CreateConstrainedWebDialog( Profile* profile, WebDialogDelegate* delegate, WebDialogWebContentsDelegate* tab_delegate, - TabContentsWrapper* overshadowed); + TabContents* overshadowed); } // namespace ui |