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

Unified Diff: chrome/browser/android/tab_state.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
Index: chrome/browser/android/tab_state.cc
diff --git a/chrome/browser/android/tab_state.cc b/chrome/browser/android/tab_state.cc
index 1a1c71a7ec2a82403f33473d7328b90e6166b4bd..cdf679b6612508e2e026364550bf873165b6d22e 100644
--- a/chrome/browser/android/tab_state.cc
+++ b/chrome/browser/android/tab_state.cc
@@ -25,6 +25,7 @@
#include "components/sessions/core/session_command.h"
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
+#include "content/public/browser/restore_type.h"
#include "content/public/browser/web_contents.h"
#include "jni/TabState_jni.h"
@@ -440,8 +441,7 @@ WebContents* WebContentsState::RestoreContentsFromByteBuffer(
params.initially_hidden = initially_hidden;
std::unique_ptr<WebContents> web_contents(WebContents::Create(params));
web_contents->GetController().Restore(
- current_entry_index, NavigationController::RESTORE_CURRENT_SESSION,
- &entries);
+ current_entry_index, content::RestoreType::CURRENT_SESSION, &entries);
return web_contents.release();
}
« no previous file with comments | « android_webview/native/state_serializer.cc ('k') | chrome/browser/chromeos/attestation/platform_verification_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698