diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 18:09:07 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-27 18:09:07 +0000 |
commit | 1e5645ff803bf73889ced446dab5b5f81e6023c0 (patch) | |
tree | 560899029aee3d7b933ae5baf1e17f89d90696a1 /chrome/browser/tab_restore_service.cc | |
parent | 473343c408b846fda90eba9bd7cf96a342f6f286 (diff) | |
download | chromium_src-1e5645ff803bf73889ced446dab5b5f81e6023c0.zip chromium_src-1e5645ff803bf73889ced446dab5b5f81e6023c0.tar.gz chromium_src-1e5645ff803bf73889ced446dab5b5f81e6023c0.tar.bz2 |
Cleanup navigation_entry.h. I made the accessors consistent and in Google style, and organized and commented all the entries. Hopefully it will be much easier to find things and deal with this class.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1449 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_restore_service.cc')
-rw-r--r-- | chrome/browser/tab_restore_service.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/tab_restore_service.cc b/chrome/browser/tab_restore_service.cc index 06408f2..ef7a973 100644 --- a/chrome/browser/tab_restore_service.cc +++ b/chrome/browser/tab_restore_service.cc @@ -157,11 +157,12 @@ void TabRestoreService::PopulateTabFromController( controller->GetPendingEntry() : controller->GetEntryAtIndex(i); TabNavigation& tab_nav = tab->navigations[i]; tab_nav.index = i; - tab_nav.url = entry->GetDisplayURL(); - tab_nav.title = entry->GetTitle(); - tab_nav.state = entry->GetContentState(); - tab_nav.transition = entry->GetTransitionType(); - tab_nav.type_mask = entry->HasPostData() ? TabNavigation::HAS_POST_DATA : 0; + tab_nav.url = entry->display_url(); + tab_nav.title = entry->title(); + tab_nav.state = entry->content_state(); + tab_nav.transition = entry->transition_type(); + tab_nav.type_mask = entry->has_post_data() ? + TabNavigation::HAS_POST_DATA : 0; } tab->current_navigation_index = controller->GetCurrentEntryIndex(); if (tab->current_navigation_index == -1 && entry_count > 0) |