diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-14 16:42:25 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-14 16:42:25 +0000 |
commit | 807bfceada33743cad3308af48c538d7d7515495 (patch) | |
tree | 19953eac8d00695cfbb8c00137d8eb192e0aedc7 /chrome/browser/alternate_nav_url_fetcher.cc | |
parent | 7b7965f2391594e6a3944ffee8fcdaaf18683fc3 (diff) | |
download | chromium_src-807bfceada33743cad3308af48c538d7d7515495.zip chromium_src-807bfceada33743cad3308af48c538d7d7515495.tar.gz chromium_src-807bfceada33743cad3308af48c538d7d7515495.tar.bz2 |
Move more view stuff out of WebContents. This moves context menus and info
bars. I removed the associated functions on TabContents, and have callers call
directly through to the view when the care about mucking with the info bar
(which is busted, IMO).
Review URL: http://codereview.chromium.org/7245
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3346 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/alternate_nav_url_fetcher.cc')
-rw-r--r-- | chrome/browser/alternate_nav_url_fetcher.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/alternate_nav_url_fetcher.cc b/chrome/browser/alternate_nav_url_fetcher.cc index 9560d9b..d20e999 100644 --- a/chrome/browser/alternate_nav_url_fetcher.cc +++ b/chrome/browser/alternate_nav_url_fetcher.cc @@ -8,6 +8,7 @@ #include "chrome/browser/navigation_entry.h" #include "chrome/browser/views/info_bar_alternate_nav_url_view.h" #include "chrome/browser/web_contents.h" +#include "chrome/browser/web_contents_view.h" AlternateNavURLFetcher::AlternateNavURLFetcher( const std::wstring& alternate_nav_url) @@ -99,8 +100,8 @@ void AlternateNavURLFetcher::ShowInfobarIfPossible() { WebContents* web_contents = tab_contents->AsWebContents(); // The infobar will auto-expire this view on the next user-initiated // navigation, so we don't need to keep track of it. - web_contents->GetInfoBarView()->AddChildView(new InfoBarAlternateNavURLView( - alternate_nav_url_)); + web_contents->view()->GetInfoBarView()->AddChildView( + new InfoBarAlternateNavURLView(alternate_nav_url_)); // Now we're no longer referencing the navigation controller or the url fetch, // so our job is done. |