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

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

Issue 5491870822039552: Issue #1234 - Remove old versions of ToWstring and ToCString (Closed)
Patch Set: Created Jan. 13, 2015, 3:35 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
« no previous file with comments | « src/plugin/AdblockPlusDomTraverser.cpp ('k') | src/plugin/PluginDebug.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include "PluginClass.h" 3 #include "PluginClass.h"
4 #include "PluginSettings.h" 4 #include "PluginSettings.h"
5 #include "PluginSystem.h" 5 #include "PluginSystem.h"
6 #include "PluginFilter.h" 6 #include "PluginFilter.h"
7 #include "PluginMimeFilterClient.h" 7 #include "PluginMimeFilterClient.h"
8 #include "PluginClient.h" 8 #include "PluginClient.h"
9 #include "PluginClientFactory.h" 9 #include "PluginClientFactory.h"
10 #include "PluginMutex.h" 10 #include "PluginMutex.h"
(...skipping 1230 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 } 1241 }
1242 } 1242 }
1243 break; 1243 break;
1244 } 1244 }
1245 case ID_MENU_DISABLE_ON_SITE: 1245 case ID_MENU_DISABLE_ON_SITE:
1246 { 1246 {
1247 CPluginSettings* settings = CPluginSettings::GetInstance(); 1247 CPluginSettings* settings = CPluginSettings::GetInstance();
1248 std::wstring urlString = GetTab()->GetDocumentUrl(); 1248 std::wstring urlString = GetTab()->GetDocumentUrl();
1249 if (client->IsWhitelistedUrl(urlString)) 1249 if (client->IsWhitelistedUrl(urlString))
1250 { 1250 {
1251 settings->RemoveWhiteListedDomain(to_CString(client->GetHostFromUrl(urlS tring))); 1251 settings->RemoveWhiteListedDomain(ToCString(client->GetHostFromUrl(urlSt ring)));
1252 } 1252 }
1253 else 1253 else
1254 { 1254 {
1255 settings->AddWhiteListedDomain(to_CString(client->GetHostFromUrl(urlStri ng))); 1255 settings->AddWhiteListedDomain(ToCString(client->GetHostFromUrl(urlStrin g)));
1256 } 1256 }
1257 GetBrowser()->Refresh(); 1257 GetBrowser()->Refresh();
1258 } 1258 }
1259 default: 1259 default:
1260 break; 1260 break;
1261 } 1261 }
1262 1262
1263 // Invalidate and redraw the control 1263 // Invalidate and redraw the control
1264 UpdateStatusBar(); 1264 UpdateStatusBar();
1265 } 1265 }
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after
1853 } 1853 }
1854 } 1854 }
1855 } 1855 }
1856 1856
1857 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT); 1857 hTabWnd = ::GetWindow(hTabWnd, GW_HWNDNEXT);
1858 } 1858 }
1859 1859
1860 return hTabWnd; 1860 return hTabWnd;
1861 1861
1862 } 1862 }
OLDNEW
« no previous file with comments | « src/plugin/AdblockPlusDomTraverser.cpp ('k') | src/plugin/PluginDebug.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld