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

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: 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
« no previous file with comments | « no previous file | chrome/browser/prerender/prerender_contents.cc » ('j') | chrome/browser/profiles/profile.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..79cc108f1adfd34518f14c2af5abaf543b77d4fc 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);
Charlie Reis 2013/07/31 17:16:16 nit: Arrow on previous line to be consistent (e.g.
jochen (gone - plz use gerrit) 2013/07/31 18:30:52 Done.
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/profiles/profile.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698