Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Side by Side Diff: sandbox/win/sandbox_poc/main_ui_window.cc

Issue 1210013007: clang/win: Fix warnings to prepare for building without -Wno-reorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clang-unsequenced
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <windows.h> 5 #include <windows.h>
6 #include <CommCtrl.h> 6 #include <CommCtrl.h>
7 #include <commdlg.h> 7 #include <commdlg.h>
8 #include <stdarg.h> 8 #include <stdarg.h>
9 #include <time.h> 9 #include <time.h>
10 #include <windowsx.h> 10 #include <windowsx.h>
11 #include <atlbase.h> 11 #include <atlbase.h>
12 #include <atlsecurity.h> 12 #include <atlsecurity.h>
13 #include <algorithm> 13 #include <algorithm>
14 #include <sstream> 14 #include <sstream>
15 15
16 #include "sandbox/win/sandbox_poc/main_ui_window.h" 16 #include "sandbox/win/sandbox_poc/main_ui_window.h"
17 #include "base/logging.h" 17 #include "base/logging.h"
18 #include "sandbox/win/sandbox_poc/resource.h" 18 #include "sandbox/win/sandbox_poc/resource.h"
19 #include "sandbox/win/src/acl.h" 19 #include "sandbox/win/src/acl.h"
20 #include "sandbox/win/src/sandbox.h" 20 #include "sandbox/win/src/sandbox.h"
21 #include "sandbox/win/src/win_utils.h" 21 #include "sandbox/win/src/win_utils.h"
22 22
23 HWND MainUIWindow::list_view_ = NULL; 23 HWND MainUIWindow::list_view_ = NULL;
24 24
25 const wchar_t MainUIWindow::kDefaultDll_[] = L"\\POCDLL.dll"; 25 const wchar_t MainUIWindow::kDefaultDll_[] = L"\\POCDLL.dll";
26 const wchar_t MainUIWindow::kDefaultEntryPoint_[] = L"Run"; 26 const wchar_t MainUIWindow::kDefaultEntryPoint_[] = L"Run";
27 const wchar_t MainUIWindow::kDefaultLogFile_[] = L""; 27 const wchar_t MainUIWindow::kDefaultLogFile_[] = L"";
28 28
29 MainUIWindow::MainUIWindow() 29 MainUIWindow::MainUIWindow()
30 : instance_handle_(NULL), 30 : broker_(NULL),
31 spawn_target_(L""), 31 spawn_target_(L""),
32 instance_handle_(NULL),
32 dll_path_(L""), 33 dll_path_(L""),
33 entry_point_(L""), 34 entry_point_(L"") {
34 broker_(NULL) {
35 } 35 }
36 36
37 MainUIWindow::~MainUIWindow() { 37 MainUIWindow::~MainUIWindow() {
38 } 38 }
39 39
40 unsigned int MainUIWindow::CreateMainWindowAndLoop( 40 unsigned int MainUIWindow::CreateMainWindowAndLoop(
41 HINSTANCE instance, 41 HINSTANCE instance,
42 wchar_t* command_line, 42 wchar_t* command_line,
43 int show_command, 43 int show_command,
44 sandbox::BrokerServices* broker) { 44 sandbox::BrokerServices* broker) {
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 item.iItem = ListView_GetItemCount(list_view_); 661 item.iItem = ListView_GetItemCount(list_view_);
662 item.iSubItem = 0; 662 item.iSubItem = 0;
663 item.mask = LVIF_TEXT | LVIF_PARAM; 663 item.mask = LVIF_TEXT | LVIF_PARAM;
664 item.pszText = message_time; 664 item.pszText = message_time;
665 item.lParam = 0; 665 item.lParam = 0;
666 666
667 ListView_InsertItem(list_view_, &item); 667 ListView_InsertItem(list_view_, &item);
668 668
669 delete[] message_time; 669 delete[] message_time;
670 } 670 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698