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

Side by Side Diff: src/plugin/PluginUtil.cpp

Issue 11043057: First run page triggering (Closed)
Patch Set: Comments addressed Created July 20, 2013, 8:11 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 #include <algorithm> 2 #include <algorithm>
3 #include <stdexcept> 3 #include <stdexcept>
4 #include <vector> 4 #include <vector>
5 5
6 #include "../shared/Utils.h" 6 #include "../shared/Utils.h"
7 #include "PluginUtil.h" 7 #include "PluginUtil.h"
8 #include "PluginSettings.h" 8 #include "PluginSettings.h"
9 9
10 BString::BString(const std::wstring& value) 10 BString::BString(const std::wstring& value)
(...skipping 11 matching lines...) Expand all
22 return value; 22 return value;
23 } 23 }
24 24
25 std::wstring UserSettingsFileUrl() 25 std::wstring UserSettingsFileUrl()
26 { 26 {
27 return FileUrl(GetDllDir() + L"html\\templates\\index.html"); 27 return FileUrl(GetDllDir() + L"html\\templates\\index.html");
28 } 28 }
29 29
30 std::wstring UserSettingsFirstRunPageUrl() 30 std::wstring UserSettingsFirstRunPageUrl()
31 { 31 {
32 return FileUrl(GetDllDir() + L"html\\templates\\firstrun.html"); 32 return FileUrl(GetDllDir() + L"html\\templates\\firstRun.html");
33 } 33 }
34 34
35 std::wstring FileUrl(const std::wstring& path) 35 std::wstring FileUrl(const std::wstring& path)
36 { 36 {
37 std::wstring url = path; 37 std::wstring url = path;
38 std::replace(url.begin(), url.end(), L'\\', L'/'); 38 std::replace(url.begin(), url.end(), L'\\', L'/');
39 return L"file:///" + url; 39 return L"file:///" + url;
40 } 40 }
41 41
OLDNEW

Powered by Google App Engine
This is Rietveld