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

Unified Diff: shell/src/Main.cpp

Issue 10802049: Functional prefs implementation (Closed)
Patch Set: Cleaned up init.js a bit Created June 5, 2013, 9:44 a.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/Main.cpp
===================================================================
--- a/shell/src/Main.cpp
+++ b/shell/src/Main.cpp
@@ -17,18 +17,19 @@
#include <AdblockPlus.h>
#include <iostream>
#include <sstream>
#include "GcCommand.h"
#include "HelpCommand.h"
#include "FiltersCommand.h"
+#include "MatchesCommand.h"
+#include "PrefsCommand.h"
#include "SubscriptionsCommand.h"
-#include "MatchesCommand.h"
namespace
{
void Add(CommandMap& commands, Command* command)
{
commands[command->name] = command;
}
@@ -63,16 +64,17 @@ int main()
AdblockPlus::FilterEngine filterEngine(jsEngine);
CommandMap commands;
Add(commands, new GcCommand(jsEngine));
Add(commands, new HelpCommand(commands));
Add(commands, new FiltersCommand(filterEngine));
Add(commands, new SubscriptionsCommand(filterEngine));
Add(commands, new MatchesCommand(filterEngine));
+ Add(commands, new PrefsCommand(filterEngine));
std::string commandLine;
while (ReadCommandLine(commandLine))
{
std::string commandName;
std::string arguments;
ParseCommandLine(commandLine, commandName, arguments);
const CommandMap::const_iterator it = commands.find(commandName);

Powered by Google App Engine
This is Rietveld