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

Unified Diff: chrome/browser/site_details.cc

Issue 2385533002: Replace usage of GURL(origin.Serialize()) with origin.GetURL() (Closed)
Patch Set: sync to #424762 Created 4 years, 2 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/site_details.cc
diff --git a/chrome/browser/site_details.cc b/chrome/browser/site_details.cc
index 5e08dec360931319b8daf014a07b6c255039f008..6b473ac762cf10a2d582f1eba0539648b4ed2ae9 100644
--- a/chrome/browser/site_details.cc
+++ b/chrome/browser/site_details.cc
@@ -149,8 +149,8 @@ void SiteDetails::CollectSiteInfo(WebContents* contents,
// determine process placement.
url::Origin origin = frame->GetLastCommittedOrigin();
GURL site = SiteInstance::GetSiteForURL(
- context, origin.unique() ? frame->GetLastCommittedURL()
- : GURL(origin.Serialize()));
+ context,
+ origin.unique() ? frame->GetLastCommittedURL() : origin.GetURL());
bool should_isolate = ShouldIsolate(context, scenario, site);
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/ui/android/bluetooth_chooser_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698