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

Unified Diff: content/browser/site_instance.h

Issue 9147051: Don't swap processes for javascript: URLs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressing feedback from creis. Created 8 years, 11 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 | content/browser/site_instance.cc » ('j') | content/browser/site_instance_unittest.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/site_instance.h
diff --git a/content/browser/site_instance.h b/content/browser/site_instance.h
index b85aa9ad4050882b08171fa53bac56497430bedc..148ade2633a1355940d17eaeea07533bd07a4c3e 100644
--- a/content/browser/site_instance.h
+++ b/content/browser/site_instance.h
@@ -74,7 +74,8 @@ class CONTENT_EXPORT SiteInstance : public base::RefCounted<SiteInstance>,
}
// Whether this SiteInstance has a running process associated with it.
- bool HasProcess() const;
+ // Virtual to allow tests to extend it.
+ virtual bool HasProcess() const;
awong 2012/01/12 22:56:41 It's unfortunate to have a partially-virtual inter
nasko 2012/01/13 01:34:50 I rewrote the test differently and now it doesn't
// Returns the current process being used to render pages in this
// SiteInstance. If the process has crashed or otherwise gone away, then
« no previous file with comments | « no previous file | content/browser/site_instance.cc » ('j') | content/browser/site_instance_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698