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

Unified Diff: src/plugin/PluginUtil.cpp

Issue 11043057: First run page triggering (Closed)
Patch Set: Minor refactoring. Renaming and a small cleanup. Created July 26, 2013, 12:05 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
« no previous file with comments | « src/plugin/PluginUtil.h ('k') | src/shared/Communication.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginUtil.cpp
===================================================================
--- a/src/plugin/PluginUtil.cpp
+++ b/src/plugin/PluginUtil.cpp
@@ -22,9 +22,19 @@
return value;
}
+std::wstring HtmlFolderPath()
+{
+ return GetDllDir() + L"html\\templates\\";
+}
+
std::wstring UserSettingsFileUrl()
{
- return FileUrl(GetDllDir() + L"html\\templates\\index.html");
+ return FileUrl(HtmlFolderPath() + L"index.html");
+}
+
+std::wstring FirstRunPageFileUrl()
+{
+ return FileUrl(HtmlFolderPath() + L"firstRun.html");
}
std::wstring FileUrl(const std::wstring& path)
« no previous file with comments | « src/plugin/PluginUtil.h ('k') | src/shared/Communication.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld