summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/site_instance.cc
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 18:39:24 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-26 18:39:24 +0000
commit3f8cb62b2416b1365407eaaf935664509ebcef5c (patch)
tree4293fcd06e7de652e09967d7b9479135704886e9 /chrome/browser/tab_contents/site_instance.cc
parent8793b4d15e6af6b41cc5a3f819c219cfb65b1e73 (diff)
downloadchromium_src-3f8cb62b2416b1365407eaaf935664509ebcef5c.zip
chromium_src-3f8cb62b2416b1365407eaaf935664509ebcef5c.tar.gz
chromium_src-3f8cb62b2416b1365407eaaf935664509ebcef5c.tar.bz2
More URL constants replacement.
Review URL: http://codereview.chromium.org/28170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10487 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/site_instance.cc')
-rw-r--r--chrome/browser/tab_contents/site_instance.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/chrome/browser/tab_contents/site_instance.cc b/chrome/browser/tab_contents/site_instance.cc
index a2a051f..6b6f65f 100644
--- a/chrome/browser/tab_contents/site_instance.cc
+++ b/chrome/browser/tab_contents/site_instance.cc
@@ -131,12 +131,12 @@ bool SiteInstance::IsSameWebSite(const GURL& url1, const GURL& url2) {
// We treat about:crash, about:hang, and about:shorthang as the same site as
// any URL, since they are used as demos for crashing/hanging a process.
- GURL about_crash = GURL("about:crash");
- GURL about_hang = GURL("about:hang");
- GURL about_shorthang = GURL("about:shorthang");
- if (url1 == about_crash || url2 == about_crash ||
- url1 == about_hang || url2 == about_hang ||
- url1 == about_shorthang || url2 == about_shorthang)
+ if (url1.spec() == chrome::kAboutCrashURL ||
+ url2.spec() == chrome::kAboutCrashURL ||
+ url1.spec() == chrome::kAboutHangURL ||
+ url2.spec() == chrome::kAboutHangURL ||
+ url1.spec() == chrome::kAboutShortHangURL ||
+ url2.spec() == chrome::kAboutShortHangURL)
return true;
// If either URL is invalid, they aren't part of the same site.