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

Unified Diff: content/test/test_browser_context.cc

Issue 9425026: Remove getters for HTML5 related objects from the ResourceContext interface. Half of them weren't u… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 10 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 | « content/test/test_browser_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_browser_context.cc
===================================================================
--- content/test/test_browser_context.cc (revision 122771)
+++ content/test/test_browser_context.cc (working copy)
@@ -49,8 +49,9 @@
}
content::ResourceContext* TestBrowserContext::GetResourceContext() {
- // TODO(phajdan.jr): Get rid of this nasty global.
- return content::MockResourceContext::GetInstance();
+ if (!resource_context_.get())
+ resource_context_.reset(new content::MockResourceContext());
+ return resource_context_.get();
}
HostZoomMap* TestBrowserContext::GetHostZoomMap() {
« no previous file with comments | « content/test/test_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698