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

Unified Diff: chrome/browser/net/net_error_tab_helper.cc

Issue 2562993002: Disallow [in]equality operator for PageTransition (Closed)
Patch Set: Disallow [in]equality operator for PageTransition Created 4 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/net/net_error_tab_helper.cc
diff --git a/chrome/browser/net/net_error_tab_helper.cc b/chrome/browser/net/net_error_tab_helper.cc
index c3c977da64ebae60c594bcc0a210585538fbfb61..8b257b5fa2b42ac9f24499fff870ef4f334f88c8 100644
--- a/chrome/browser/net/net_error_tab_helper.cc
+++ b/chrome/browser/net/net_error_tab_helper.cc
@@ -102,7 +102,8 @@ void NetErrorTabHelper::DidStartNavigation(
return;
if (navigation_handle->IsErrorPage() &&
- navigation_handle->GetPageTransition() == ui::PAGE_TRANSITION_RELOAD) {
+ PageTransitionCoreTypeIs(navigation_handle->GetPageTransition(),
+ ui::PAGE_TRANSITION_RELOAD)) {
error_page::RecordEvent(
error_page::NETWORK_ERROR_PAGE_BROWSER_INITIATED_RELOAD);
}

Powered by Google App Engine
This is Rietveld 408576698