Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/ConsoleJsObject.cpp

Issue 29500602: Issue 5450 - introduce the Platform class (Closed) Base URL: https://github.com/adblockplus/libadblockplus.git
Patch Set: rebase Created July 31, 2017, 12:53 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/ConsoleJsObject.cpp
diff --git a/src/ConsoleJsObject.cpp b/src/ConsoleJsObject.cpp
index 9730f72838648bd9024883345b959faea4745555..0f258f69c5983ddac6d06ad09ebce8adc957245c 100644
--- a/src/ConsoleJsObject.cpp
+++ b/src/ConsoleJsObject.cpp
@@ -22,6 +22,7 @@
#include "ConsoleJsObject.h"
#include "JsContext.h"
#include "Utils.h"
+#include <AdblockPlus/Platform.h>
namespace
{
@@ -45,7 +46,7 @@ namespace
source << AdblockPlus::Utils::FromV8String(frame->GetScriptName());
source << ":" << frame->GetLineNumber();
- AdblockPlus::LogSystem& callback = jsEngine->GetLogSystem();
+ AdblockPlus::LogSystem& callback = jsEngine->GetPlatform().GetLogSystem();
callback(logLevel, message.str(), source.str());
}
@@ -97,7 +98,7 @@ namespace
traceback << std::endl;
}
- AdblockPlus::LogSystem& callback = jsEngine->GetLogSystem();
+ AdblockPlus::LogSystem& callback = jsEngine->GetPlatform().GetLogSystem();
callback(AdblockPlus::LogSystem::LOG_LEVEL_TRACE, traceback.str(), "");
}
}

Powered by Google App Engine
This is Rietveld