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

Unified Diff: chrome/browser/ui/toolbar/wrench_menu_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/toolbar/toolbar_model.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/wrench_menu_model.cc
===================================================================
--- chrome/browser/ui/toolbar/wrench_menu_model.cc (revision 116109)
+++ chrome/browser/ui/toolbar/wrench_menu_model.cc (working copy)
@@ -57,6 +57,7 @@
#endif
using content::UserMetricsAction;
+using content::WebContents;
////////////////////////////////////////////////////////////////////////////////
// EncodingMenuModel
@@ -98,7 +99,7 @@
}
bool EncodingMenuModel::IsCommandIdChecked(int command_id) const {
- TabContents* current_tab = browser_->GetSelectedTabContents();
+ WebContents* current_tab = browser_->GetSelectedWebContents();
if (!current_tab)
return false;
EncodingMenuController controller;
@@ -590,8 +591,8 @@
bool enable_increment = false;
bool enable_decrement = false;
int zoom_percent = 100;
- if (browser_->GetSelectedTabContents()) {
- zoom_percent = browser_->GetSelectedTabContents()->GetZoomPercent(
+ if (browser_->GetSelectedWebContents()) {
+ zoom_percent = browser_->GetSelectedWebContents()->GetZoomPercent(
&enable_increment, &enable_decrement);
}
zoom_label_ = l10n_util::GetStringFUTF16(
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_model.cc ('k') | chrome/browser/ui/toolbar/wrench_menu_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698