Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'local_ads/statistics.cpp')
-rw-r--r--local_ads/statistics.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/local_ads/statistics.cpp b/local_ads/statistics.cpp
index d9face059d..2d65a3eefd 100644
--- a/local_ads/statistics.cpp
+++ b/local_ads/statistics.cpp
@@ -130,7 +130,7 @@ local_ads::Timestamp GetMaxTimestamp(std::list<local_ads::Event> const & events,
std::string GetPath(std::string const & fileName)
{
- return base::JoinFoldersToPath({GetPlatform().WritableDir(), kStatisticsFolderName}, fileName);
+ return base::JoinFoldersToPath({GetPlatform().SettingsDir(), kStatisticsFolderName}, fileName);
}
std::string GetPath(local_ads::Event const & event)
@@ -270,6 +270,12 @@ void Statistics::RegisterEvents(std::list<Event> && events)
std::bind(&Statistics::ProcessEvents, this, std::move(events)));
}
+void Statistics::RegisterEventSync(Event && event)
+{
+ std::list<Event> events = {std::move(event)};
+ ProcessEvents(events);
+}
+
void Statistics::SetEnabled(bool isEnabled)
{
m_isEnabled = isEnabled;