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

Unified Diff: chrome/browser/profiles/profile.cc

Issue 20924002: Try to restore window.opener when opening blocked popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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/profiles/profile.cc
diff --git a/chrome/browser/profiles/profile.cc b/chrome/browser/profiles/profile.cc
index c8690ee718bdf20d5a403994b9c2735110b7068a..0a43159f755f265aaee0ed4baa29c483e99bf912 100644
--- a/chrome/browser/profiles/profile.cc
+++ b/chrome/browser/profiles/profile.cc
@@ -15,6 +15,7 @@
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/sync/sync_prefs.h"
#include "chrome/common/pref_names.h"
+#include "chrome/common/url_constants.h"
#include "components/user_prefs/pref_registry_syncable.h"
#include "content/public/browser/notification_service.h"
#include "content/public/browser/notification_source.h"
@@ -205,3 +206,14 @@ void Profile::MaybeSendDestroyedNotification() {
content::NotificationService::NoDetails());
}
}
+
+std::string Profile::GetStoragePartitionIdForSite(const GURL& site) {
+ std::string partition_id;
+
+ // The partition ID for webview guest processes is the string value of its
+ // SiteInstance URL - "chrome-guest://app_id/persist?partition".
+ if (site.SchemeIs(chrome::kGuestScheme))
+ partition_id = site.spec();
+
+ return partition_id;
+}

Powered by Google App Engine
This is Rietveld 408576698