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

Unified Diff: chrome/browser/android/tab_state.cc

Issue 1432143002: Track where WebContents are created in order to better understand issue. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 4cfb6e39fc9358fe67541e85d400a70fa2901ddd..c0a0fd6f59f8821d0585e055e786dbaf1dedfc32 100644
--- a/chrome/browser/android/tab_state.cc
+++ b/chrome/browser/android/tab_state.cc
@@ -23,6 +23,7 @@
#include "content/public/browser/navigation_controller.h"
#include "content/public/browser/navigation_entry.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_source.h"
#include "jni/TabState_jni.h"
using base::android::ConvertUTF16ToJavaString;
@@ -435,6 +436,8 @@ WebContents* WebContentsState::RestoreContentsFromByteBuffer(
WebContents::CreateParams params(profile);
params.initially_hidden = initially_hidden;
scoped_ptr<WebContents> web_contents(WebContents::Create(params));
+ WebContentsSource::CreateForWebContentsAndLocation(web_contents.get(),
+ FROM_HERE);
web_contents->GetController().Restore(
current_entry_index,
NavigationController::RESTORE_CURRENT_SESSION,

Powered by Google App Engine
This is Rietveld 408576698