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

Unified Diff: chrome/browser/tabs/pinned_tab_codec.cc

Issue 8892011: Clean up TCW, make it solely a hub for 1:1 observer/helper objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/tabs/pinned_tab_codec.cc
diff --git a/chrome/browser/tabs/pinned_tab_codec.cc b/chrome/browser/tabs/pinned_tab_codec.cc
index cb3c7f7a3d5f37260e1129c3010a5269878602b3..eaa02da1452d6a7442f428d0ad96b13c00a64740 100644
--- a/chrome/browser/tabs/pinned_tab_codec.cc
+++ b/chrome/browser/tabs/pinned_tab_codec.cc
@@ -53,9 +53,10 @@ static void EncodePinnedTab(TabStripModel* model,
value->SetString(kURL, extension->GetFullLaunchURL().spec());
values->Append(value.release());
} else {
- NavigationEntry* entry = tab_contents->controller().GetActiveEntry();
- if (!entry && tab_contents->controller().entry_count())
- entry = tab_contents->controller().GetEntryAtIndex(0);
+ NavigationEntry* entry =
+ tab_contents->tab_contents()->controller().GetActiveEntry();
+ if (!entry && tab_contents->tab_contents()->controller().entry_count())
+ entry = tab_contents->tab_contents()->controller().GetEntryAtIndex(0);
if (entry) {
value->SetString(kURL, entry->url().spec());
values->Append(value.release());
« no previous file with comments | « chrome/browser/tab_contents/web_drag_bookmark_handler_mac.mm ('k') | chrome/browser/tabs/tab_strip_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698