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

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

Issue 11305008: Remove TabContents from TabStripModelObserverBridge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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/hung_renderer_controller.mm
diff --git a/chrome/browser/ui/cocoa/hung_renderer_controller.mm b/chrome/browser/ui/cocoa/hung_renderer_controller.mm
index 12529acd18af6f2d86a922c43435a1d9097b7062..1ebc1fab3afdcc6ff28554df586f1b70e6d56cd8 100644
--- a/chrome/browser/ui/cocoa/hung_renderer_controller.mm
+++ b/chrome/browser/ui/cocoa/hung_renderer_controller.mm
@@ -175,11 +175,11 @@ class WebContentsObserverBridge : public content::WebContentsObserver {
for (TabContentsIterator it; !it.done(); ++it) {
if (it->web_contents()->GetRenderProcessHost() ==
hungContents_->GetRenderProcessHost()) {
- string16 title = (*it)->web_contents()->GetTitle();
+ string16 title = it->web_contents()->GetTitle();
if (title.empty())
title = CoreTabHelper::GetDefaultTitle();
[titles addObject:base::SysUTF16ToNSString(title)];
- [favicons addObject:mac::FaviconForTabContents(*it)];
+ [favicons addObject:mac::FaviconForWebContents(it->web_contents())];
}
}
hungTitles_.reset([titles copy]);
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.mm ('k') | chrome/browser/ui/cocoa/infobars/infobar_container_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698