Index: chrome/browser/chrome_content_browser_client.cc |
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc |
index 86e75848aacd888e4bce09577aa450e86be6be31..1eef3d234a308a8d57428d6e377f666a1d0472f2 100644 |
--- a/chrome/browser/chrome_content_browser_client.cc |
+++ b/chrome/browser/chrome_content_browser_client.cc |
@@ -687,12 +687,8 @@ content::BrowserMainParts* ChromeContentBrowserClient::CreateBrowserMainParts( |
std::string ChromeContentBrowserClient::GetStoragePartitionIdForSite( |
content::BrowserContext* browser_context, |
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(); |
+ std::string partition_id = Profile::FromBrowserContext(browser_context)-> |
+ GetStoragePartitionIdForSite(site); |
DCHECK(IsValidStoragePartitionId(browser_context, partition_id)); |
return partition_id; |