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

Unified Diff: chrome/browser/ui/cocoa/sidebar_controller.mm

Issue 9085006: Replace Browser::GetTabContentsAt with GetWebContentsAt and update all callers. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac yet again 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
Index: chrome/browser/ui/cocoa/sidebar_controller.mm
===================================================================
--- chrome/browser/ui/cocoa/sidebar_controller.mm (revision 116244)
+++ chrome/browser/ui/cocoa/sidebar_controller.mm (working copy)
@@ -76,7 +76,8 @@
sidebarContents = activeSidebar->sidebar_contents();
}
- TabContents* oldSidebarContents = [contentsController_ tabContents];
+ TabContents* oldSidebarContents = static_cast<TabContents*>(
+ [contentsController_ webContents]);
if (oldSidebarContents == sidebarContents)
return;
@@ -141,7 +142,7 @@
}
}
- [contentsController_ changeTabContents:sidebarContents];
+ [contentsController_ changeWebContents:sidebarContents];
}
- (void)resizeSidebarToNewWidth:(CGFloat)width {
« no previous file with comments | « chrome/browser/ui/cocoa/dev_tools_controller.mm ('k') | chrome/browser/ui/cocoa/tab_contents/tab_contents_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698