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

Unified Diff: chrome/browser/chrome_content_browser_client.cc

Issue 20924002: Try to restore window.opener when opening blocked popups (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates 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/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;
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_contents.cc » ('j') | chrome/browser/ui/browser_navigator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698