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

Delta Between Two Patch Sets: src/plugin/PluginClassThread.cpp

Issue 10783032: Pass browser locale to the JS code (Closed)
Left Patch Set: Created June 4, 2013, 8:57 a.m.
Right Patch Set: Fixed review comments Created June 4, 2013, 11:25 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Right: Side by side diff | Download
« no previous file with change/comment | « src/plugin/PluginClass.cpp ('k') | src/shared/Version.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(no file at all)
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include <ctime> 3 #include <ctime>
4 4
5 #include "PluginClass.h" 5 #include "PluginClass.h"
6 #include "PluginDictionary.h" 6 #include "PluginDictionary.h"
7 #include "PluginSettings.h" 7 #include "PluginSettings.h"
8 #include "PluginSystem.h" 8 #include "PluginSystem.h"
9 #include "PluginConfiguration.h" 9 #include "PluginConfiguration.h"
10 #ifdef SUPPORT_FILTER 10 #ifdef SUPPORT_FILTER
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 { 155 {
156 if (today == lastUpdate || std::difftime(today, lastUpdate) / (60 * 60 * 2 4) >= 5.0) 156 if (today == lastUpdate || std::difftime(today, lastUpdate) / (60 * 60 * 2 4) >= 5.0)
157 { 157 {
158 CString updateVersion = settings->GetString(SETTING_PLUGIN_UPDATE_VERSIO N); 158 CString updateVersion = settings->GetString(SETTING_PLUGIN_UPDATE_VERSIO N);
159 159
160 DEBUG_GENERAL(L"*** Displaying update plugin dialog for version " + upda teVersion); 160 DEBUG_GENERAL(L"*** Displaying update plugin dialog for version " + upda teVersion);
161 161
162 // Show update dialog 162 // Show update dialog
163 CUpdateDialog uDlg; 163 CUpdateDialog uDlg;
164 164
165 uDlg.SetVersions(updateVersion, _T(IEPLUGIN_VERSION)); 165 uDlg.SetVersions(updateVersion, IEPLUGIN_VERSION);
166 166
167 if (uDlg.DoModal(::GetDesktopWindow()) == IDOK) 167 if (uDlg.DoModal(::GetDesktopWindow()) == IDOK)
168 { 168 {
169 s_isPluginToBeUpdated = true; 169 s_isPluginToBeUpdated = true;
170 } 170 }
171 171
172 settings->SetValue(SETTING_PLUGIN_UPDATE_TIME, (int)today); 172 settings->SetValue(SETTING_PLUGIN_UPDATE_TIME, (int)today);
173 settings->Write(); 173 settings->Write();
174 } 174 }
175 } 175 }
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 bool isDone = false; 349 bool isDone = false;
350 350
351 s_criticalSectionLocal.Lock(); 351 s_criticalSectionLocal.Lock();
352 { 352 {
353 isDone = s_isMainThreadDone || mainThread != s_hMainThread; 353 isDone = s_isMainThreadDone || mainThread != s_hMainThread;
354 } 354 }
355 s_criticalSectionLocal.Unlock(); 355 s_criticalSectionLocal.Unlock();
356 356
357 return isDone; 357 return isDone;
358 } 358 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld