summaryrefslogtreecommitdiffstats
path: root/components/crash/tools/crash_service.cc
diff options
context:
space:
mode:
authorpkasting <pkasting@chromium.org>2014-10-13 13:58:39 -0700
committerCommit bot <commit-bot@chromium.org>2014-10-13 20:59:18 +0000
commit7bc277b97e9f5f3b470c4b6ccd9337ff73892159 (patch)
treeb6d16809dd1f5965a2bb38d50bab27a22f1e998a /components/crash/tools/crash_service.cc
parent21860bb80f4b5710d633dfd89bf25bc7beaec0c6 (diff)
downloadchromium_src-7bc277b97e9f5f3b470c4b6ccd9337ff73892159.zip
chromium_src-7bc277b97e9f5f3b470c4b6ccd9337ff73892159.tar.gz
chromium_src-7bc277b97e9f5f3b470c4b6ccd9337ff73892159.tar.bz2
Misc. cleanup, primarily removing unused locals.
Also various other fixes, e.g. condensing code, converting DCHECK_LT(0, a) -> DCHECK_GT(a, 0) (and the like) for readability, inserting a few typecasts. BUG=none TEST=none Review URL: https://codereview.chromium.org/637023002 Cr-Commit-Position: refs/heads/master@{#299362}
Diffstat (limited to 'components/crash/tools/crash_service.cc')
-rw-r--r--components/crash/tools/crash_service.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/components/crash/tools/crash_service.cc b/components/crash/tools/crash_service.cc
index 48dcbc8..7e1798f 100644
--- a/components/crash/tools/crash_service.cc
+++ b/components/crash/tools/crash_service.cc
@@ -92,7 +92,7 @@ bool CreateTopWindow(HINSTANCE instance, bool visible) {
wcx.lpfnWndProc = CrashSvcWndProc;
wcx.hInstance = instance;
wcx.lpszClassName = L"crash_svc_class";
- ATOM atom = ::RegisterClassExW(&wcx);
+ ::RegisterClassExW(&wcx);
DWORD style = visible ? WS_POPUPWINDOW | WS_VISIBLE : WS_OVERLAPPED;
// The window size is zero but being a popup window still shows in the
@@ -466,7 +466,6 @@ PSECURITY_DESCRIPTOR CrashService::GetSecurityDescriptorForLowIntegrity() {
// Build the SDDL string for the label.
std::wstring sddl = L"S:(ML;;NW;;;S-1-16-4096)";
- DWORD error = ERROR_SUCCESS;
PSECURITY_DESCRIPTOR sec_desc = NULL;
PACL sacl = NULL;