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

Unified Diff: chrome/renderer/resources/extensions/web_view.js

Issue 336283002: Remove GuestWebContentsCreated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplify_creation
Patch Set: Merge with ToT Created 6 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/renderer/resources/extensions/web_view.js
diff --git a/chrome/renderer/resources/extensions/web_view.js b/chrome/renderer/resources/extensions/web_view.js
index 81b5d3fd4a2d13daf3d7a6c14f508b56c0a8e0be..f3abbecead89809cd28721ded96306106e605bb8 100644
--- a/chrome/renderer/resources/extensions/web_view.js
+++ b/chrome/renderer/resources/extensions/web_view.js
@@ -612,9 +612,16 @@ WebViewInternal.prototype.hasGuestInstanceID = function() {
};
WebViewInternal.prototype.allocateInstanceId = function() {
- // Parse .src and .partition.
+ var storagePartitionId =
+ this.webviewNode.getAttribute(WEB_VIEW_ATTRIBUTE_PARTITION) ||
+ this.webviewNode[WEB_VIEW_ATTRIBUTE_PARTITION];
+ var params = {
+ 'storagePartitionId': storagePartitionId,
+ };
var self = this;
- GuestViewInternal.allocateInstanceId(
+ GuestViewInternal.createGuest(
+ 'webview',
+ params,
function(instanceId) {
self.instanceId = instanceId;
// TODO(lazyboy): Make sure this.autoNavigate_ stuff correctly updated
« no previous file with comments | « chrome/common/extensions/api/guest_view_internal.json ('k') | content/browser/browser_plugin/browser_plugin_embedder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698