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

Unified Diff: components/translate/content/browser/content_translate_driver.cc

Issue 2225343002: Navigation: move RestoreType and ReloadType into a separate file (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase+ Created 4 years, 4 months 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: components/translate/content/browser/content_translate_driver.cc
diff --git a/components/translate/content/browser/content_translate_driver.cc b/components/translate/content/browser/content_translate_driver.cc
index 24376c16d711385043017b4f44e6a4e94396375c..e489f063c5b3ad6ce12355f096714bcd0128b080 100644
--- a/components/translate/content/browser/content_translate_driver.cc
+++ b/components/translate/content/browser/content_translate_driver.cc
@@ -178,7 +178,7 @@ void ContentTranslateDriver::NavigationEntryCommitted(
// If not a reload, return.
if (!ui::PageTransitionCoreTypeIs(entry->GetTransitionType(),
ui::PAGE_TRANSITION_RELOAD) &&
- load_details.type != content::NAVIGATION_TYPE_SAME_PAGE) {
+ load_details.type != content::NavigationType::SAME_PAGE) {
return;
}
@@ -205,7 +205,7 @@ void ContentTranslateDriver::DidNavigateAnyFrame(
const bool reload =
ui::PageTransitionCoreTypeIs(details.entry->GetTransitionType(),
ui::PAGE_TRANSITION_RELOAD) ||
- details.type == content::NAVIGATION_TYPE_SAME_PAGE;
+ details.type == content::NavigationType::SAME_PAGE;
translate_manager_->GetLanguageState().DidNavigate(
details.is_in_page, details.is_main_frame, reload);
}

Powered by Google App Engine
This is Rietveld 408576698