Index: content/public/common/content_client.cc |
=================================================================== |
--- content/public/common/content_client.cc (revision 210446) |
+++ content/public/common/content_client.cc (working copy) |
@@ -30,6 +30,12 @@ |
g_client->renderer_ = r; |
return rv; |
} |
+ |
+ static ContentUtilityClient* SetUtility(ContentUtilityClient* u) { |
+ ContentUtilityClient* rv = g_client->utility_; |
+ g_client->utility_ = u; |
+ return rv; |
+ } |
}; |
void SetContentClient(ContentClient* client) { |
@@ -55,6 +61,10 @@ |
return InternalTestInitializer::SetRenderer(r); |
} |
+ContentUtilityClient* SetUtilityClientForTesting(ContentUtilityClient* u) { |
+ return InternalTestInitializer::SetUtility(u); |
+} |
+ |
const std::string& GetUserAgent(const GURL& url) { |
DCHECK(g_client); |
return webkit_glue::GetUserAgent(url); |