Renamed LoadCommittedDetails.is_in_page to is_same_document.

https://codereview.chromium.org/2841833002
This commit is contained in:
Aleksei Kuzmin 2017-08-08 03:49:20 +03:00 committed by Cheng Zhao
parent 90b0984a14
commit 650902c656

View file

@ -839,10 +839,10 @@ void WebContents::DidFinishNavigation(
bool is_main_frame = navigation_handle->IsInMainFrame();
if (navigation_handle->HasCommitted() && !navigation_handle->IsErrorPage()) {
auto url = navigation_handle->GetURL();
bool is_in_page = navigation_handle->IsSameDocument();
if (is_main_frame && !is_in_page) {
bool is_same_document = navigation_handle->IsSameDocument();
if (is_main_frame && !is_same_document) {
Emit("did-navigate", url);
} else if (is_in_page) {
} else if (is_same_document) {
Emit("did-navigate-in-page", url, is_main_frame);
}
} else {
@ -989,7 +989,7 @@ void WebContents::WebContentsDestroyed() {
void WebContents::NavigationEntryCommitted(
const content::LoadCommittedDetails& details) {
Emit("navigation-entry-commited", details.entry->GetURL(),
details.is_in_page, details.did_replace_entry);
details.is_same_document, details.did_replace_entry);
}
int64_t WebContents::GetID() const {