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

Unified Diff: content/renderer/renderer_webapplicationcachehost_impl.cc

Issue 16026006: Introduce the notion of a "layout test mode" instead of turning individual flags on and off (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/renderer/renderer_webapplicationcachehost_impl.h ('k') | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_webapplicationcachehost_impl.cc
diff --git a/content/renderer/renderer_webapplicationcachehost_impl.cc b/content/renderer/renderer_webapplicationcachehost_impl.cc
index 6404053f589b6351cf0d77364d85e2b0143d888d..16717dc780074b9da011651559528172f61ee951 100644
--- a/content/renderer/renderer_webapplicationcachehost_impl.cc
+++ b/content/renderer/renderer_webapplicationcachehost_impl.cc
@@ -16,8 +16,6 @@ using WebKit::WebConsoleMessage;
namespace content {
-static bool g_disable_logging = false;
-
RendererWebApplicationCacheHostImpl::RendererWebApplicationCacheHostImpl(
RenderViewImpl* render_view,
WebApplicationCacheHostClient* client,
@@ -28,7 +26,7 @@ RendererWebApplicationCacheHostImpl::RendererWebApplicationCacheHostImpl(
void RendererWebApplicationCacheHostImpl::OnLogMessage(
appcache::LogLevel log_level, const std::string& message) {
- if (g_disable_logging)
+ if (RenderThreadImpl::current()->layout_test_mode())
return;
RenderViewImpl* render_view = GetRenderView();
@@ -61,9 +59,4 @@ RenderViewImpl* RendererWebApplicationCacheHostImpl::GetRenderView() {
return RenderViewImpl::FromRoutingID(routing_id_);
}
-// static
-void RendererWebApplicationCacheHostImpl::DisableLoggingForTesting() {
- g_disable_logging = true;
-}
-
} // namespace content
« no previous file with comments | « content/renderer/renderer_webapplicationcachehost_impl.h ('k') | content/shell/app/shell_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698