| 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;
|
| +}
|
|
|