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

Delta Between Two Patch Sets: src/engine/Updater.cpp

Issue 11304082: Download updates automatically, ask to install from a modeless dialog (Closed)
Left Patch Set: Created July 31, 2013, 7:16 p.m.
Right Patch Set: Calculate sizes dynamically Created Aug. 2, 2013, 10:47 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/engine/Updater.h ('k') | src/engine/engine.rc » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 #include <functional> 1 #include <functional>
2 #include <memory> 2 #include <memory>
3 #include <sstream> 3 #include <sstream>
4 4
5 #include <Windows.h> 5 #include <Windows.h>
6 6
7 #include <AdblockPlus/FileSystem.h> 7 #include <AdblockPlus/FileSystem.h>
8 #include <AdblockPlus/WebRequest.h> 8 #include <AdblockPlus/WebRequest.h>
9 9
10 #include "../shared/AutoHandle.h" 10 #include "../shared/AutoHandle.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 UpdateInstallDialog dialog; 131 UpdateInstallDialog dialog;
132 bool shouldInstall = dialog.Show(); 132 bool shouldInstall = dialog.Show();
133 if (shouldInstall) 133 if (shouldInstall)
134 { 134 {
135 if (!InstallUpdate(tempFile)) 135 if (!InstallUpdate(tempFile))
136 { 136 {
137 DebugLastError("Failed to install update"); 137 DebugLastError("Failed to install update");
138 Dictionary* dictionary = Dictionary::GetInstance(); 138 Dictionary* dictionary = Dictionary::GetInstance();
139 MessageBoxW( 139 MessageBoxW(
140 0, dictionary->Lookup("updater", "install-error-text").c_str(), 140 0, dictionary->Lookup("updater", "install-error-text").c_str(),
141 dictionary->Lookup("updater", "install-error-title").c_str(), MB_OK); 141 dictionary->Lookup("updater", "install-error-title").c_str(),
Wladimir Palant 2013/08/01 09:58:24 Add MB_ICONEXCLAMATION flag?
Felix Dahlke 2013/08/02 10:48:01 Done.
142 MB_OK | MB_ICONEXCLAMATION);
142 } 143 }
143 } 144 }
144 } 145 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld