removed will-navigate and did-navigate events

This commit is contained in:
deepak1556 2015-04-25 09:50:11 +05:30
parent 05be71e9bc
commit 18b3dfa350
8 changed files with 5 additions and 48 deletions

View file

@ -310,8 +310,6 @@ void WebContents::WebContentsDestroyed() {
void WebContents::NavigationEntryCommitted(
const content::LoadCommittedDetails& load_details) {
if (load_details.is_navigation_to_different_page())
Emit("did-navigate");
auto entry = web_contents()->GetController().GetLastCommittedEntry();
entry->SetVirtualURL(load_details.entry->GetOriginalRequestURL());
}
@ -400,8 +398,7 @@ gfx::Image WebContents::GetFavicon() const {
auto entry = web_contents()->GetController().GetLastCommittedEntry();
if (!entry)
return gfx::Image();
auto favicon_status = entry->GetFavicon();
return favicon_status.image;
return entry->GetFavicon().image;
}
bool WebContents::IsLoading() const {