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

Unified Diff: shell/src/MatchesCommand.cpp

Issue 10100009: FilterEngine API improvements (Closed)
Patch Set: Addressed review comments Created April 8, 2013, 1:51 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: shell/src/MatchesCommand.cpp
===================================================================
--- a/shell/src/MatchesCommand.cpp
+++ b/shell/src/MatchesCommand.cpp
@@ -18,17 +18,17 @@ void MatchesCommand::operator()(const st
std::string documentUrl;
argumentStream >> documentUrl;
if (!url.size() || !contentType.size() || !documentUrl.size())
{
ShowUsage();
return;
}
- AdblockPlus::Filter* match = filterEngine.Matches(url, contentType, documentUrl);
+ AdblockPlus::FilterPtr match = filterEngine.Matches(url, contentType, documentUrl);
if (!match)
std::cout << "No match" << std::endl;
else if (match->GetProperty("type", "") == "exception")
std::cout << "Whitelisted" << std::endl;
else
std::cout << "Blocked" << std::endl;
}

Powered by Google App Engine
This is Rietveld