Fix styling of #1209

This commit is contained in:
Cheng Zhao 2015-03-09 13:46:46 -07:00
parent 2495583b5e
commit 29471ff8b5

View file

@ -267,11 +267,8 @@ void WebContents::WebContentsDestroyed() {
void WebContents::NavigationEntryCommitted( void WebContents::NavigationEntryCommitted(
const content::LoadCommittedDetails& load_details) { const content::LoadCommittedDetails& load_details) {
content::NavigationEntry* entry = load_details.entry; auto entry = web_contents()->GetController().GetLastCommittedEntry();
web_contents() entry->SetVirtualURL(load_details.entry->GetOriginalRequestURL());
->GetController()
.GetLastCommittedEntry()
->SetVirtualURL(entry->GetOriginalRequestURL());
} }
void WebContents::DidAttach(int guest_proxy_routing_id) { void WebContents::DidAttach(int guest_proxy_routing_id) {
@ -333,10 +330,8 @@ void WebContents::LoadURL(const GURL& url, const mate::Dictionary& options) {
} }
GURL WebContents::GetURL() const { GURL WebContents::GetURL() const {
return web_contents() auto entry = web_contents()->GetController().GetLastCommittedEntry();
->GetController() return entry->GetVirtualURL();
.GetLastCommittedEntry()
->GetVirtualURL();
} }
base::string16 WebContents::GetTitle() const { base::string16 WebContents::GetTitle() const {