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

Unified Diff: content/browser/site_instance_unittest.cc

Issue 9221017: Hide BrowsingInstance from all but SiteInstance, as intended by design. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make all methods non-public to help ensure BrowsingInstance design is preserved in future. 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
Index: content/browser/site_instance_unittest.cc
diff --git a/content/browser/site_instance_unittest.cc b/content/browser/site_instance_unittest.cc
index ebb532c353b5a3c024638685ced586484e1668a8..f436471162a6857fbfed408a70587a43632b4442 100644
--- a/content/browser/site_instance_unittest.cc
+++ b/content/browser/site_instance_unittest.cc
@@ -133,6 +133,14 @@ class TestBrowsingInstance : public BrowsingInstance {
use_process_per_site_ = use_process_per_site;
}
+ // Make a few methods public for tests.
+ using BrowsingInstance::ShouldUseProcessPerSite;
+ using BrowsingInstance::browser_context;
+ using BrowsingInstance::HasSiteInstance;
+ using BrowsingInstance::GetSiteInstanceForURL;
+ using BrowsingInstance::RegisterSiteInstance;
+ using BrowsingInstance::UnregisterSiteInstance;
+
private:
virtual ~TestBrowsingInstance() {
(*delete_counter_)++;

Powered by Google App Engine
This is Rietveld 408576698