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

Unified Diff: chrome/browser/ui/toolbar/toolbar_model.cc

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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
« no previous file with comments | « chrome/browser/ui/pdf/pdf_browsertest.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/toolbar_model.cc
===================================================================
--- chrome/browser/ui/toolbar/toolbar_model.cc (revision 116109)
+++ chrome/browser/ui/toolbar/toolbar_model.cc (working copy)
@@ -29,6 +29,7 @@
using content::NavigationEntry;
using content::SSLStatus;
+using content::WebContents;
ToolbarModel::ToolbarModel(Browser* browser)
: browser_(browser),
@@ -82,9 +83,9 @@
}
}
- TabContents* tab_contents = browser_->GetSelectedTabContents();
- if (tab_contents && tab_contents->GetWebUIForCurrentState())
- return !tab_contents->GetWebUIForCurrentState()->should_hide_url();
+ WebContents* web_contents = browser_->GetSelectedWebContents();
+ if (web_contents && web_contents->GetWebUIForCurrentState())
+ return !web_contents->GetWebUIForCurrentState()->should_hide_url();
if (entry && entry->GetURL().SchemeIs(chrome::kExtensionScheme))
return false;
« no previous file with comments | « chrome/browser/ui/pdf/pdf_browsertest.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698