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

Unified Diff: chrome/browser/ui/android/tab_model/android_live_tab_context.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, 3 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
« no previous file with comments | « chrome/browser/ssl/ssl_error_handler.cc ('k') | chrome/browser/ui/bookmarks/bookmark_tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/tab_model/android_live_tab_context.cc
diff --git a/chrome/browser/ui/android/tab_model/android_live_tab_context.cc b/chrome/browser/ui/android/tab_model/android_live_tab_context.cc
index d24dcae73043e59e24f822dc8d65c107a03cbd1c..8b298ada7e1f4aa4bed9c11f59ba65a462cb8847 100644
--- a/chrome/browser/ui/android/tab_model/android_live_tab_context.cc
+++ b/chrome/browser/ui/android/tab_model/android_live_tab_context.cc
@@ -11,6 +11,7 @@
#include "components/sessions/content/content_serialized_navigation_builder.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/navigation_entry.h"
+#include "content/public/browser/restore_type.h"
AndroidLiveTabContext::AndroidLiveTabContext(TabModel* tab_model)
: tab_model_(tab_model) {}
@@ -79,9 +80,7 @@ sessions::LiveTab* AndroidLiveTabContext::AddRestoredTab(
content::WebContents* web_contents = content::WebContents::Create(
content::WebContents::CreateParams(profile));
web_contents->GetController().Restore(
- selected_navigation,
- content::NavigationController::RESTORE_CURRENT_SESSION,
- &nav_entries);
+ selected_navigation, content::RestoreType::CURRENT_SESSION, &nav_entries);
// Create new tab.
tab_model_->CreateTab(nullptr, web_contents, -1);
« no previous file with comments | « chrome/browser/ssl/ssl_error_handler.cc ('k') | chrome/browser/ui/bookmarks/bookmark_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698