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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 261013005: BrowserPlugin: Move CreateGuest to chrome (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@guestview_manager_simplify_api
Patch Set: Created 6 years, 8 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: content/browser/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index ad2e1f3beca21f9d28cfb03c99bf91b1361668ef..ce742f17809ad815e25870756b381c3f5d9591fb 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -325,10 +325,13 @@ BrowserPluginGuest* BrowserPluginGuest::CreateNewGuestWindow(
// embedder exposes the same API for this guest as its opener.
scoped_ptr<base::DictionaryValue> extra_params(
extra_attach_params_->DeepCopy());
+ StorageInfo storage_info;
+ storage_info.partition_id = attach_params.storage_partition_id;
+ storage_info.persist = attach_params.persist_storage;
BrowserPluginGuest* new_guest =
guest_manager->CreateGuest(GetWebContents()->GetSiteInstance(),
instance_id,
- attach_params,
+ storage_info,
extra_params.Pass());
if (new_guest->delegate_)
new_guest->delegate_->SetOpener(GetWebContents());

Powered by Google App Engine
This is Rietveld 408576698