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

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

Issue 2043833003: customtabs: Initialize the spare renderer using the new WebContents method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Proguard fix for a test. Created 4 years, 6 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/web_contents_factory.cc
diff --git a/chrome/browser/android/web_contents_factory.cc b/chrome/browser/android/web_contents_factory.cc
index 605c5abf114b79e0a571761f14e6e5601cf64b96..d957e548ccc329d6893539b51fbfdff3313048fb 100644
--- a/chrome/browser/android/web_contents_factory.cc
+++ b/chrome/browser/android/web_contents_factory.cc
@@ -16,13 +16,15 @@ static ScopedJavaLocalRef<jobject> CreateWebContents(
JNIEnv* env,
const JavaParamRef<jclass>& clazz,
jboolean incognito,
- jboolean initially_hidden) {
+ jboolean initially_hidden,
+ jboolean initialize_renderer) {
Profile* profile = g_browser_process->profile_manager()->GetLastUsedProfile();
if (incognito)
profile = profile->GetOffTheRecordProfile();
content::WebContents::CreateParams params(profile);
params.initially_hidden = static_cast<bool>(initially_hidden);
+ params.initialize_renderer = static_cast<bool>(initialize_renderer);
return content::WebContents::Create(params)->GetJavaWebContents();
}

Powered by Google App Engine
This is Rietveld 408576698